开发者

Charts - Column chart with extra data

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 开发者_JAVA技巧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


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜