图表 - 带有额外数据的柱形图
我有一些类似于下图的数据: http://developer.yahoo.com/yui/examples/charts/ Charts-seriescustomization_clean.html
唯一的区别是,对于每个字段 - 我有一些其他额外的数据 - 例如对于公用事业 - 我有公用事业的现金储备 - 作为另一个字段。我希望这个数据点位于实用程序栏上方。
从早上起我就一直在尝试让这张图表发挥作用,但我无法做到。如果有可能的话,您能告诉我吗?
预先非常感谢您。
问候 K
I have some data similar to the following chart:
http://developer.yahoo.com/yui/examples/charts/charts-seriescustomization_clean.html
Only difference is that for each of the fields - I have some other extra data - say For utlilities - I have a cash reserve for utility - as another field. I would prefer this data point to come above the utilities bar.
I have been trying from morning to get this chart working, but I am unable to do so. Could you please let me know if it is possible - someway?
Thank you very much in advance.
Regards
K
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
所有正数据将出现在原点上方,因此任何正数据将显示在实用工具栏上方。如果您试图让字段直接显示在实用程序栏上方,则无法使用柱形图来实现。您可以使用堆积柱形图来完成此操作。使用堆叠柱形图时,所有项目都将堆叠。 将上述链接转换为堆积柱形图
您可以通过将图表构造函数从 ColumnChart 更改为 StackedColumnChart:并将垂直轴上的 stackingEnabled 设置为 true,
。特里普
All data that is positive will appear above the origin so any positive data will be above the utilities bar. If you are trying to get your field to appear directly above the utilities bar, you cannot accomplish his with a column chart. You can do this with the stacked column chart. When using the stacked column chart, all items will be stacked. You can convert the above link to a stacked column by changing your chart constructor from ColumnChart to StackedColumnChart:
and by setting stackingEnabled to true on your vertical axis.
Tripp