From c8a727fa45c7868783aeceed683aa10b404a85fe Mon Sep 17 00:00:00 2001 From: Gold Development <98313570+gold-development@users.noreply.github.com> Date: Mon, 19 Aug 2024 14:04:52 +0200 Subject: [PATCH] Fix wrong datalabel value --- src/charts/common/bar/DataLabels.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/charts/common/bar/DataLabels.js b/src/charts/common/bar/DataLabels.js index adff2e71c..49b76de75 100644 --- a/src/charts/common/bar/DataLabels.js +++ b/src/charts/common/bar/DataLabels.js @@ -145,8 +145,8 @@ export default class BarDataLabels { val: this.barCtx.isRangeBar ? [y1, y2] : w.config.chart.stackType === '100%' - ? series[i][j] - : w.globals.series[i][j], + ? series[realIndex][j] + : w.globals.series[realIndex][j], i: realIndex, j, barWidth,