• Open in:

Divergent Stacked Bars

Sometimes you want to stack all the bars in a bar chart on top of each other. Other times, you want some parts of the chart go into diverging directions. This demo shows you a simple way to achieve that with amCharts.

Key implementation details

To achieve this effect we use negative values for bars that need to go to the left of the the axis (0% mark). We format values to display absolute numbers using root.numberFormatter.set("numberFormat", "#.#s'%"); to avoid displaying negative numbers.

Related tutorials

Demo source