From 0459a1eb80b86529b992f0c1cb26fffe6bb9038d Mon Sep 17 00:00:00 2001 From: Leon Sorokin Date: Wed, 13 Nov 2024 06:43:16 -0600 Subject: [PATCH] BarChart: Fix decimals=0 config (#96354) --- public/app/plugins/panel/barchart/utils.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/public/app/plugins/panel/barchart/utils.ts b/public/app/plugins/panel/barchart/utils.ts index df3769fd029..d6cf592062e 100644 --- a/public/app/plugins/panel/barchart/utils.ts +++ b/public/app/plugins/panel/barchart/utils.ts @@ -419,6 +419,7 @@ export const prepConfig = ({ series, totalSeries, color, orientation, options, t direction: vizOrientation.yDir, distribution: customConfig.scaleDistribution?.type, log: customConfig.scaleDistribution?.log, + decimals: field.config.decimals, }); if (customConfig.axisPlacement !== AxisPlacement.Hidden) { @@ -445,6 +446,7 @@ export const prepConfig = ({ series, totalSeries, color, orientation, options, t tickLabelRotation: vizOrientation.xOri === 1 ? xTickLabelRotation * -1 : 0, theme, grid: { show: customConfig.axisGridShow }, + decimals: field.config.decimals, }; if (customConfig.axisBorderShow) {