Histogram: Start y-axis at 0, set default color mode to classic palette (#81759)

This commit is contained in:
Leon Sorokin 2024-02-02 01:57:08 -06:00 committed by GitHub
parent 795eb4a8d8
commit 86b16ea62a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 1 deletions

View File

@ -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!;

View File

@ -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,