mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -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,
|
distribution: ScaleDistribution.Linear,
|
||||||
orientation: ScaleOrientation.Vertical,
|
orientation: ScaleOrientation.Vertical,
|
||||||
direction: ScaleDirection.Up,
|
direction: ScaleDirection.Up,
|
||||||
|
softMin: 0,
|
||||||
});
|
});
|
||||||
|
|
||||||
const fmt = frame.fields[0].display!;
|
const fmt = frame.fields[0].display!;
|
||||||
|
@ -54,7 +54,9 @@ export const plugin = new PanelPlugin<Options, FieldConfig>(HistogramPanel)
|
|||||||
standardOptions: {
|
standardOptions: {
|
||||||
[FieldConfigProperty.Color]: {
|
[FieldConfigProperty.Color]: {
|
||||||
settings: {
|
settings: {
|
||||||
byValueSupport: true,
|
byValueSupport: false,
|
||||||
|
bySeriesSupport: true,
|
||||||
|
preferThresholdsMode: false,
|
||||||
},
|
},
|
||||||
defaultValue: {
|
defaultValue: {
|
||||||
mode: FieldColorModeId.PaletteClassic,
|
mode: FieldColorModeId.PaletteClassic,
|
||||||
|
Loading…
Reference in New Issue
Block a user