AnyChart | How to create multiseries stacked column...
Welcome, Guest Login

Support Center

How to create multiseries stacked column or bar chart?

Last Updated: Sep 04, 2015 07:25AM MDT
If you need to create the multi series JavaScript Stacked Bar Chart or JavaScript Column Chart, you need to create an additional y axis and bind the data series to this axis:

//create an additional axis
var extraYScale = anychart.scales.linear();

//define mode type
extraYScale.stackMode("percent");

//create chart series
var series3 = chart.bar(seriesData_3);
var series4 = chart.bar(seriesData_4);

//bind data series to extra axis
series3.yScale(extraYScale);
series4.yScale(extraYScale);


Take a look at the sample: http://jsfiddle.net/b0g2m8r4/

Contact Us

support@anychart.com
http://assets2.desk.com/
false
desk
Loading
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
about
false
Invalid characters found
/customer/en/portal/articles/autocomplete