| Page 1 of 1 | [ 3 posts ] |
|
Hi folks,
I am currently working on implementing charts with the amazing YUI Charts Widget and I came up with the following problem. If I define axes within configuration properties of a chart the scale will not adjust automatically according to the given data when the chart is a stacked one. But if I create the chart without defining axes everything works fine. You can have a look on http://jsfiddle.net/unoerpel/s36L6/9/. The current state is with axes definitions and as you can see the columns are overflowing the axes scale. If you delete the axes out of the configuration the scaling works perfect. Any ideas? TIA, Uwe |
|
Hi Uwe,
A stacked chart requires a StackedAxis. Changing your consumption axis type from numeric to stacked should do the trick. Code: consumption: { type: "stacked", position: "left", keys: ["miscellaneous", "expenses","revenue"], styles: { majorTicks: { display: "none" }, label: { margin: { right: 15, left: 10 } } } } Thanks, Tripp |
|
Hi Trip,
thanks a lot for your reply, it solved the scaling issue. Cheers, Uwe |
| Page 1 of 1 | [ 3 posts ] |
| You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum |
© 2006-2013 Yahoo! Inc. All rights reserved.
All code on this site is licensed under the BSD License unless stated otherwise.
About This Site · Security Contact Info
Powered by phpBB® Forum Software © phpBB Group