mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
* kindsys: Adapt to new PanelCfg schema interface * building locally * Remove Panel prefix in cue files * Regenerate * Update imports * fixup! Merge branch 'remove-panel-prefix' into sdboyer/redundant-panelcfg-prefixes * Fix formatting --------- Co-authored-by: Ryan McKinley <ryantxu@gmail.com> Co-authored-by: Tania B <yalyna.ts@gmail.com>
55 lines
1.3 KiB
TypeScript
55 lines
1.3 KiB
TypeScript
// Code generated - EDITING IS FUTILE. DO NOT EDIT.
|
|
//
|
|
// Generated by:
|
|
// public/app/plugins/gen.go
|
|
// Using jennies:
|
|
// TSTypesJenny
|
|
// PluginTSTypesJenny
|
|
//
|
|
// Run 'make gen-cue' from repository root to regenerate.
|
|
|
|
import * as common from '@grafana/schema';
|
|
|
|
export const PanelCfgModelVersion = Object.freeze([0, 0]);
|
|
|
|
export interface Options extends common.OptionsWithLegend, common.OptionsWithTooltip {
|
|
/**
|
|
* Offset buckets by this amount
|
|
*/
|
|
bucketOffset?: number;
|
|
/**
|
|
* Size of each bucket
|
|
*/
|
|
bucketSize?: number;
|
|
/**
|
|
* Combines multiple series into a single histogram
|
|
*/
|
|
combine?: boolean;
|
|
}
|
|
|
|
export const defaultOptions: Partial<Options> = {
|
|
bucketOffset: 0,
|
|
};
|
|
|
|
export interface FieldConfig extends common.AxisConfig, common.HideableFieldConfig {
|
|
/**
|
|
* Controls the fill opacity of the bars.
|
|
*/
|
|
fillOpacity?: number;
|
|
/**
|
|
* 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.
|
|
*/
|
|
gradientMode?: common.GraphGradientMode;
|
|
/**
|
|
* Controls line width of the bars.
|
|
*/
|
|
lineWidth?: number;
|
|
}
|
|
|
|
export const defaultFieldConfig: Partial<FieldConfig> = {
|
|
fillOpacity: 80,
|
|
gradientMode: common.GraphGradientMode.None,
|
|
lineWidth: 1,
|
|
};
|