CJ-
CJ-

Reputation: 19

Highcharts not showing value when two stacked columns have value = 1

I'm trying to show numbers in my Highcharts stacked columns. I have this issue that can be seen in my left column. When there are two small numbers together only one is shown.

This issue didn't happen with big numbers.

I've tried this so far:

Upvotes: 1

Views: 51

Answers (1)

ppotaczek
ppotaczek

Reputation: 39069

The issue is caused by default anti-overlap behaviour for data labels. To display both data labels enable the allowOverlap option.

    plotOptions: {
        column: {
            ...,
            dataLabels: {
                allowOverlap: true,
                ...
            }
        }
    }

Live demo: http://jsfiddle.net/BlackLabel/k4vojwea/

API Reference: https://api.highcharts.com/highcharts/series.column.dataLabels.allowOverlap

Upvotes: 1

Related Questions