mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
BarChart: support log scale (#43305)
This commit is contained in:
parent
af3860e953
commit
33c64dba38
@ -58,7 +58,7 @@ export const plugin = new PanelPlugin<BarChartOptions, BarChartFieldConfig>(BarC
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
commonOptionsBuilder.addAxisConfig(builder, cfg, true);
|
commonOptionsBuilder.addAxisConfig(builder, cfg, false);
|
||||||
commonOptionsBuilder.addHideFrom(builder);
|
commonOptionsBuilder.addHideFrom(builder);
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
@ -183,6 +183,8 @@ export const preparePlotConfigBuilder: UPlotConfigPrepFn<BarChartOptions> = ({
|
|||||||
softMax: customConfig.axisSoftMax,
|
softMax: customConfig.axisSoftMax,
|
||||||
orientation: vizOrientation.yOri,
|
orientation: vizOrientation.yOri,
|
||||||
direction: vizOrientation.yDir,
|
direction: vizOrientation.yDir,
|
||||||
|
distribution: customConfig.scaleDistribution?.type,
|
||||||
|
log: customConfig.scaleDistribution?.log,
|
||||||
});
|
});
|
||||||
|
|
||||||
if (customConfig.axisPlacement !== AxisPlacement.Hidden) {
|
if (customConfig.axisPlacement !== AxisPlacement.Hidden) {
|
||||||
|
Loading…
Reference in New Issue
Block a user