Hi everyone,
I wanted to ask a question. I found some solutions, but it doesnt work for me.
I tried this, found in StackOverflow :
https://jsfiddle.net/7bzy06gt/5/
I want to put first datalabel on top and second in middle
Because when i get two same datas, it becomes unreadable.
I tried this
series: {
dataLabels: {
formatter: function () {
// Pour les écrans du CA Mensuel, valeurs en avec une decimale et %
if (this.series.userOptions?.custom.dataLabelTop) {
return '<span class="dataLabel" style="position: relative; top:30px">' +
Highcharts.numberFormat(this.y, 1) + ' %' + '</span>';
} else if (this.series.userOptions?.custom.isPercentage) {
return Highcharts.numberFormat(this.y, 1) + ' %';
} else { return this.y; }
}
}
}
This doesnt work for me, i dont understand why.
I would like to put first on TOP and the second datalabel in MIDDLE of Columns.
Thanks a lot !!