BarChart: Fix decimals=0 config (#96354)

pull/96389/head
Leon Sorokin 6 months ago committed by GitHub
parent d9b87ef987
commit 0459a1eb80
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      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) {

Loading…
Cancel
Save