highchart column chart negative stack labels overlap with axis labels

126 Views Asked by At

When there are negative stack labels for a column chart, they overlap with axis labels for considerably large values.

Here's a fiddle to recreate the problem. [https://jsfiddle.net/adityapachpor/0fekodq3/2/]

The value "-450" overlaps with axis label here

1

There are 1 best solutions below

0
On

If you want to keep dataLabels inside the plot area, you need to leave the default justify setting for dataLabels.overflow option.

Demo: https://jsfiddle.net/BlackLabel/hjr1wuyt/

API Reference: https://api.highcharts.com/highcharts/series.line.dataLabels.overflow