From 529ce32ef04ef4af6e611e1ef13a0f062652c8d2 Mon Sep 17 00:00:00 2001 From: HendrikThePendric Date: Wed, 12 Jun 2024 14:44:45 +0200 Subject: [PATCH] fix: set `dataLabels.padding` to `0` to avoid labels being cut off in pie charts --- src/visualizations/config/adapters/dhis_highcharts/series/pie.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/visualizations/config/adapters/dhis_highcharts/series/pie.js b/src/visualizations/config/adapters/dhis_highcharts/series/pie.js index b5afb2c49..0555eeb0d 100644 --- a/src/visualizations/config/adapters/dhis_highcharts/series/pie.js +++ b/src/visualizations/config/adapters/dhis_highcharts/series/pie.js @@ -23,6 +23,7 @@ export default function (series, colors) { colors: colors, dataLabels: { enabled: true, + padding: 0, formatter: function () { return formatDataLabel( this.point.name,