Stacked charts are Multi-Series charts which show two or more similar set of data together in a single chart. There are two variants of Stacked Charts
Pie charts and Doughnut charts cannot be combined with any other chart type.Note
In Next Example, we will draw a simple stackedArea chart. Edit the code to draw “stackedColumn” and “stackedBar” chart.
100 percent Stacked Charts are similar to above mentioned Stacked Chart except that they are rendered as a percent of 100.
Below is an example of “stackedColumn100”. Here, total length of each Column is 100 units, and length of each dataPoint is it’s contribution to total in percent.
Modify the chart to create, “stackedArea100”, “stackedBar100” charts.
Using the above concepts, we can plot a complete chart as below.
Note that we have enabled Legend by setting showInLegend property to true. You’ll learn more about Legend in the upcoming sections.