I am using RDLC reporting for showing pie chart in my C#.net application. I need to show values in percentage form on the pie chart. What expression should be used in order to show desired data? Please help me...
我正在使用RDLC报告在我的C#.net应用程序中显示饼图。我需要在饼图上以百分比形式显示值。应该使用什么表达式来显示所需的数据?请帮我...
2 个解决方案
#1
right click on the labels of the chart, In the general tab choose #PERCENT for the label data
右键单击图表的标签,在常规选项卡中选择#PERCENT作为标签数据
#2
To put the % value on each pie chart slice do this (as shown here):
要将%值放在每个饼图切片上,请执行此操作(如此处所示):
- On the design surface, right-click on the pie and select Show Data Labels. The data labels should appear within each slice on the pie chart.
- On the design surface, right-click on the labels and select Series Label Properties. The Series Label Properties dialog box appears.
- Type #PERCENT for the Label data option.
在设计图面上,右键单击饼图并选择“显示数据标签”。数据标签应出现在饼图上的每个切片中。
在设计图面上,右键单击标签,然后选择“系列标签属性”。将出现“系列标签属性”对话框。
键入#PERCENT作为标签数据选项。
Result:
If you are dealing with mutliple data fields feeding your pie, check out this.
如果您正在处理提供馅饼的多个数据字段,请查看此信息。
#1
right click on the labels of the chart, In the general tab choose #PERCENT for the label data
右键单击图表的标签,在常规选项卡中选择#PERCENT作为标签数据
#2
To put the % value on each pie chart slice do this (as shown here):
要将%值放在每个饼图切片上,请执行此操作(如此处所示):
- On the design surface, right-click on the pie and select Show Data Labels. The data labels should appear within each slice on the pie chart.
- On the design surface, right-click on the labels and select Series Label Properties. The Series Label Properties dialog box appears.
- Type #PERCENT for the Label data option.
在设计图面上,右键单击饼图并选择“显示数据标签”。数据标签应出现在饼图上的每个切片中。
在设计图面上,右键单击标签,然后选择“系列标签属性”。将出现“系列标签属性”对话框。
键入#PERCENT作为标签数据选项。
Result:
If you are dealing with mutliple data fields feeding your pie, check out this.
如果您正在处理提供馅饼的多个数据字段,请查看此信息。