• Open in:

Stacked bar chart with negative values

You can stack negative and positive values into a bar chart to represent things like the population pyramid and alike.

In order to omit the sign from the negative values, set the numberFormat accordingly:

chart.numberFormatter.numberFormat = "#.#s";

Demo source