mirror of
https://github.com/grafana/grafana.git
synced 2025-02-20 11:48:34 -06:00
* Add schema for XYChart * Minor cleanup * remove unessecary fields from ScatterFieldConfigVeneer, and cleaning up more * Fix counts Co-authored-by: sam boyer <sdboyer@grafana.com>
67 lines
1.6 KiB
TypeScript
67 lines
1.6 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 enum SeriesMapping {
|
|
Auto = 'auto',
|
|
Manual = 'manual',
|
|
}
|
|
|
|
export enum ScatterShow {
|
|
Lines = 'lines',
|
|
Points = 'points',
|
|
PointsAndLines = 'points+lines',
|
|
}
|
|
|
|
export interface XYDimensionConfig {
|
|
exclude?: Array<string>;
|
|
frame: number;
|
|
x?: string;
|
|
}
|
|
|
|
export const defaultXYDimensionConfig: Partial<XYDimensionConfig> = {
|
|
exclude: [],
|
|
};
|
|
|
|
export interface ScatterFieldConfig extends common.HideableFieldConfig, common.AxisConfig {
|
|
label?: common.VisibilityMode;
|
|
labelValue?: common.TextDimensionConfig;
|
|
lineColor?: common.ColorDimensionConfig;
|
|
lineStyle?: common.LineStyle;
|
|
lineWidth?: number;
|
|
pointColor?: common.ColorDimensionConfig;
|
|
pointSize?: common.ScaleDimensionConfig;
|
|
show?: ScatterShow;
|
|
}
|
|
|
|
export const defaultScatterFieldConfig: Partial<ScatterFieldConfig> = {
|
|
label: common.VisibilityMode.Auto,
|
|
show: ScatterShow.Points,
|
|
};
|
|
|
|
export interface ScatterSeriesConfig extends ScatterFieldConfig {
|
|
name?: string;
|
|
x?: string;
|
|
y?: string;
|
|
}
|
|
|
|
export interface PanelOptions extends common.OptionsWithLegend, common.OptionsWithTooltip {
|
|
dims: XYDimensionConfig;
|
|
series: Array<ScatterSeriesConfig>;
|
|
seriesMapping?: SeriesMapping;
|
|
}
|
|
|
|
export const defaultPanelOptions: Partial<PanelOptions> = {
|
|
series: [],
|
|
};
|