2023-01-06 03:57:45 -06:00
|
|
|
// Code generated - EDITING IS FUTILE. DO NOT EDIT.
|
2022-08-18 08:19:11 -05:00
|
|
|
//
|
2022-12-02 01:22:28 -06:00
|
|
|
// Generated by:
|
|
|
|
// public/app/plugins/gen.go
|
|
|
|
// Using jennies:
|
|
|
|
// TSTypesJenny
|
|
|
|
// PluginTSTypesJenny
|
2022-09-14 09:15:09 -05:00
|
|
|
//
|
2022-12-02 01:22:28 -06:00
|
|
|
// Run 'make gen-cue' from repository root to regenerate.
|
2022-09-26 10:26:18 -05:00
|
|
|
|
2023-01-23 13:28:44 -06:00
|
|
|
import * as common from '@grafana/schema';
|
2021-05-10 14:00:59 -05:00
|
|
|
|
2023-01-20 03:41:35 -06:00
|
|
|
export const PanelCfgModelVersion = Object.freeze([0, 0]);
|
2021-05-10 14:00:59 -05:00
|
|
|
|
2023-01-23 13:28:44 -06:00
|
|
|
export interface PanelOptions extends common.OptionsWithLegend, common.OptionsWithTooltip {
|
2022-09-26 10:26:18 -05:00
|
|
|
/**
|
|
|
|
* Offset buckets by this amount
|
|
|
|
*/
|
2021-05-10 14:00:59 -05:00
|
|
|
bucketOffset?: number;
|
2022-09-26 10:26:18 -05:00
|
|
|
/**
|
|
|
|
* Size of each bucket
|
|
|
|
*/
|
2022-08-18 08:19:11 -05:00
|
|
|
bucketSize?: number;
|
2022-09-26 10:26:18 -05:00
|
|
|
/**
|
|
|
|
* Combines multiple series into a single histogram
|
|
|
|
*/
|
2021-05-10 14:00:59 -05:00
|
|
|
combine?: boolean;
|
|
|
|
}
|
|
|
|
|
2022-08-18 08:19:11 -05:00
|
|
|
export const defaultPanelOptions: Partial<PanelOptions> = {
|
2021-05-10 14:00:59 -05:00
|
|
|
bucketOffset: 0,
|
|
|
|
};
|
|
|
|
|
2023-01-23 13:28:44 -06:00
|
|
|
export interface PanelFieldConfig extends common.AxisConfig, common.HideableFieldConfig {
|
2022-09-26 10:26:18 -05:00
|
|
|
/**
|
|
|
|
* Controls the fill opacity of the bars.
|
|
|
|
*/
|
2022-08-18 08:19:11 -05:00
|
|
|
fillOpacity?: number;
|
2022-09-26 10:26:18 -05:00
|
|
|
/**
|
|
|
|
* Set the mode of the gradient fill. Fill gradient is based on the line color. To change the color, use the standard color scheme field option.
|
|
|
|
* Gradient appearance is influenced by the Fill opacity setting.
|
|
|
|
*/
|
2023-01-23 13:28:44 -06:00
|
|
|
gradientMode?: common.GraphGradientMode;
|
2022-09-26 10:26:18 -05:00
|
|
|
/**
|
|
|
|
* Controls line width of the bars.
|
|
|
|
*/
|
2022-08-18 08:19:11 -05:00
|
|
|
lineWidth?: number;
|
2021-05-10 14:00:59 -05:00
|
|
|
}
|
|
|
|
|
2022-08-18 08:19:11 -05:00
|
|
|
export const defaultPanelFieldConfig: Partial<PanelFieldConfig> = {
|
2021-05-10 14:00:59 -05:00
|
|
|
fillOpacity: 80,
|
2023-01-23 13:28:44 -06:00
|
|
|
gradientMode: common.GraphGradientMode.None,
|
2022-08-18 08:19:11 -05:00
|
|
|
lineWidth: 1,
|
2021-05-10 14:00:59 -05:00
|
|
|
};
|