Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

Highcharts Stacked Bar Chart

Highcharts Stacked Bar Chart

Highcharts Bar ChartHighcharts Bar Chart

The following example demonstrates a stacked bar chart.

We learned the basic Highcharts configuration syntax in the previous chapters. Now let's look at some other configurations.


Configure

plotOptions

Configure chart stacking using plotOptions.series.stacking and set it to "normal". Set it to null to disable stacking; "normal" stacks by value, while "percent" stacks by percentage.



var plotOptions = {

   series: {

      stacking: 'normal'      

   }

};

Example

Filename: highcharts_bar_stacked.htm









Highcharts 教程 | Runoob Tutorial(runoob.com)









The output of the above example is:

Highcharts Bar ChartHighcharts Bar Chart