图表 - 带有额外数据的柱形图

发布于 2024-08-25 20:28:20 字数 403 浏览 5 评论 0原文

我有一些类似于下图的数据: 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

花开半夏魅人心 2024-09-01 20:28:20

所有正数据将出现在原点上方,因此任何正数据将显示在实用工具栏上方。如果您试图让字段直接显示在实用程序栏上方,则无法使用柱形图来实现。您可以使用堆积柱形图来完成此操作。使用堆叠柱形图时,所有项目都将堆叠。 将上述链接转换为堆积柱形图

var mychart = new YAHOO.widget.StackedColumnChart

您可以通过将图表构造函数从 ColumnChart 更改为 StackedColumnChart:并将垂直轴上的 stackingEnabled 设置为 true,

currencyAxis.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:

var mychart = new YAHOO.widget.StackedColumnChart

and by setting stackingEnabled to true on your vertical axis.

currencyAxis.stackingEnabled = true;

Tripp

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文