BarChart: Fix decimals=0 config (#96354)

This commit is contained in:
Leon Sorokin 2024-11-13 06:43:16 -06:00 committed by GitHub
parent d9b87ef987
commit 0459a1eb80
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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) {