Use the "percent" property
Use the 'percent' property without having to stack (for instance on a basic column chart)
-
Lxir commented
I totally agree with Nunivek's suggestion. Indeed, the 'stacking' option is only a display topic, while the 'percent' option is about bases scaling.
Being able to click on the legend to disable an item is really an awesome facility when it also re-calculates the base and changes percent values ! Unfortunately, this actually depends on the 'stacking' option for bar or column charts.
Anyway, congratulations and keep up the good work ! ;-)
-
nunivek commented
Thank you for your comment and sorry for the lack of information.
Actually I first posted a question on stackoverflow about this, you can find it here : http://stackoverflow.com/questions/22534359/highcharts-grouped-columns-with-percentages
The point is I would like to keep the behaviour of a stack chart, especially the fact that when you click on the legend to hide/show data, the percentages are automatically updated (which is really nice and useful).
It is possible to do it by catching the legendItemClick event and then recalculating the data accordingly, but this is quite painful (compared to using a stack chart).