mirror of
https://github.com/grafana/grafana.git
synced 2024-12-25 08:21:46 -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,
|
direction: vizOrientation.yDir,
|
||||||
distribution: customConfig.scaleDistribution?.type,
|
distribution: customConfig.scaleDistribution?.type,
|
||||||
log: customConfig.scaleDistribution?.log,
|
log: customConfig.scaleDistribution?.log,
|
||||||
|
decimals: field.config.decimals,
|
||||||
});
|
});
|
||||||
|
|
||||||
if (customConfig.axisPlacement !== AxisPlacement.Hidden) {
|
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,
|
tickLabelRotation: vizOrientation.xOri === 1 ? xTickLabelRotation * -1 : 0,
|
||||||
theme,
|
theme,
|
||||||
grid: { show: customConfig.axisGridShow },
|
grid: { show: customConfig.axisGridShow },
|
||||||
|
decimals: field.config.decimals,
|
||||||
};
|
};
|
||||||
|
|
||||||
if (customConfig.axisBorderShow) {
|
if (customConfig.axisBorderShow) {
|
||||||
|
Loading…
Reference in New Issue
Block a user