mirror of
https://github.com/grafana/grafana.git
synced 2025-02-15 01:53:33 -06:00
Histogram: Start y-axis at 0, set default color mode to classic palette (#81759)
This commit is contained in:
parent
795eb4a8d8
commit
86b16ea62a
@ -136,6 +136,7 @@ const prepConfig = (frame: DataFrame, theme: GrafanaTheme2) => {
|
||||
distribution: ScaleDistribution.Linear,
|
||||
orientation: ScaleOrientation.Vertical,
|
||||
direction: ScaleDirection.Up,
|
||||
softMin: 0,
|
||||
});
|
||||
|
||||
const fmt = frame.fields[0].display!;
|
||||
|
@ -54,7 +54,9 @@ export const plugin = new PanelPlugin<Options, FieldConfig>(HistogramPanel)
|
||||
standardOptions: {
|
||||
[FieldConfigProperty.Color]: {
|
||||
settings: {
|
||||
byValueSupport: true,
|
||||
byValueSupport: false,
|
||||
bySeriesSupport: true,
|
||||
preferThresholdsMode: false,
|
||||
},
|
||||
defaultValue: {
|
||||
mode: FieldColorModeId.PaletteClassic,
|
||||
|
Loading…
Reference in New Issue
Block a user