Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Highcharts bar with non-stacked percent series

I want to create Highcharts bar chart with non-stacked percentage values.

I use:

plotOptions.bar.stacking = 'percent'

But this stack all series on top another to get to 100%. I want each series to be rendered as different bar.

I there any way doing it other than processing series data myself?

like image 265
BobTheBuilder Avatar asked Dec 28 '25 16:12

BobTheBuilder


1 Answers

Yes, what you've specified there is how you want the chart to stack the bars, specifically.

To see labels/tooltips, etc as % of total, you'll need to loop through the data and calculate it all.

Then you use the formatters to output the right values for the axis labels, the tooltip, the data labels, etc

Example:

  • http://jsfiddle.net/JVNjs/320/
like image 193
jlbriggs Avatar answered Dec 31 '25 06:12

jlbriggs



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!