mirror of
https://github.com/grafana/grafana.git
synced 2024-12-24 16:10:22 -06:00
BarChart: Fix decimals=0 config (#96354)
This commit is contained in:
parent
d9b87ef987
commit
0459a1eb80
@ -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…
Reference in New Issue
Block a user