[英]Rgraph: How to show average on top of stacked bar?
I am using Rgraph and I want to show average at the top of each stacked bar graph.我正在使用 Rgraph,我想在每个堆叠条形图的顶部显示平均值。
How can we do that?我们怎么做?
First StackOverflow question in ages - take a chocolate!多年来的第一个 StackOverflow 问题 - 拿一块巧克力!
For this you can use the labelsAbove option - like these examples:为此,您可以使用 labelsAbove 选项 - 就像这些示例:
[UPDATE: See below] [更新:见下文]
These are stacked Bar charts:这些是堆积条形图:
[UPDATE: See below] [更新:见下文]
This one is slightly different in that it adds the labels when the wave animation effect is finished:这个略有不同,它在波浪动画效果完成时添加标签:
[UPDATE: See below] [更新:见下文]
Or this one shows the labels at the top of the chart:或者这个显示图表顶部的标签:
[UPDATE: See below] [更新:见下文]
Update: All the demos are available in the download archive:更新:所有演示都可以在下载档案中找到:
https://www.rgraph.net/download.html#stable https://www.rgraph.net/download.html#stable
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.