如何让 RDLC 饼图显示范围而不是单个值
我有一些来自自定义数据集的数据,如下例所示:
Person Age
P1 20
P2 21
P3 30
P4 31
P5 40
我想开发一个饼图,显示年龄分布与年龄的关系。
重点是我希望这个年龄以范围显示。 (例如 20-29、30-39 等 所以我们有: 切片总数 =2 (P1 + P2),因为年龄为 20-29 岁(一张在 20 岁,另一张在 21 岁)
切片总数 =3 (P3 + P4),因为年龄为 30-39 岁(一张在 30 岁,另一张在 21 岁) 31)
切片总数 =1 (P5),因为年龄为 40(40 岁时切片)。
如何自定义饼图以按我可以定义的范围聚合值?
I have some data coming from a custom dataset that look like the following example
Person Age
P1 20
P2 21
P3 30
P4 31
P5 40
And I want to develop a pie showing the age distribution against the age.
The point is that I want this Age to be shown in ranges. (20-29, 30-39, etc for example
So we have:
Slice with total number =2 (P1 + P2) as age is 20-29 (one at 20 and another at 21)
Slice with total number =3 (P3 + P4) as age is 30-39 (one at 30 and another at 31)
Slice with total number =1 (P5) as age is 40 (one at 40).
How can i customize the pie chart to aggregate values by ranges that I can define?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
右键单击图表->数据->类别组,
将表达式上的数据值组和标签更改为类似的内容
Right click Chart -> Data -> Category Groups,
Change the Data values Group on expression and the Labels to something like