2023-01-06 03:57:45 -06:00
|
|
|
// Code generated - EDITING IS FUTILE. DO NOT EDIT.
|
2022-08-18 07:46:36 -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';
|
2022-08-18 07:46:36 -05:00
|
|
|
|
2023-01-20 03:41:35 -06:00
|
|
|
export const PanelCfgModelVersion = Object.freeze([0, 0]);
|
2022-08-18 07:46:36 -05:00
|
|
|
|
2022-09-26 10:26:18 -05:00
|
|
|
/**
|
|
|
|
* Select the pie chart display style.
|
|
|
|
*/
|
2022-08-18 07:46:36 -05:00
|
|
|
export enum PieChartType {
|
|
|
|
Donut = 'donut',
|
|
|
|
Pie = 'pie',
|
|
|
|
}
|
|
|
|
|
2022-09-26 10:26:18 -05:00
|
|
|
/**
|
|
|
|
* Select labels to display on the pie chart.
|
|
|
|
* - Name - The series or field name.
|
|
|
|
* - Percent - The percentage of the whole.
|
|
|
|
* - Value - The raw numerical value.
|
|
|
|
*/
|
2022-08-18 07:46:36 -05:00
|
|
|
export enum PieChartLabels {
|
|
|
|
Name = 'name',
|
|
|
|
Percent = 'percent',
|
|
|
|
Value = 'value',
|
|
|
|
}
|
|
|
|
|
2022-09-26 10:26:18 -05:00
|
|
|
/**
|
|
|
|
* Select values to display in the legend.
|
|
|
|
* - Percent: The percentage of the whole.
|
|
|
|
* - Value: The raw numerical value.
|
|
|
|
*/
|
2022-08-18 07:46:36 -05:00
|
|
|
export enum PieChartLegendValues {
|
|
|
|
Percent = 'percent',
|
|
|
|
Value = 'value',
|
|
|
|
}
|
|
|
|
|
2023-01-23 13:28:44 -06:00
|
|
|
export interface PieChartLegendOptions extends common.VizLegendOptions {
|
2022-09-26 10:26:18 -05:00
|
|
|
values: Array<PieChartLegendValues>;
|
2022-08-18 07:46:36 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
export const defaultPieChartLegendOptions: Partial<PieChartLegendOptions> = {
|
|
|
|
values: [],
|
|
|
|
};
|
|
|
|
|
2023-05-15 22:07:54 -05:00
|
|
|
export interface Options extends common.OptionsWithTooltip, common.SingleStatBaseOptions {
|
2022-09-26 10:26:18 -05:00
|
|
|
displayLabels: Array<PieChartLabels>;
|
2022-08-18 07:46:36 -05:00
|
|
|
legend: PieChartLegendOptions;
|
|
|
|
pieType: PieChartType;
|
|
|
|
}
|
|
|
|
|
2023-05-15 22:07:54 -05:00
|
|
|
export const defaultOptions: Partial<Options> = {
|
2022-08-18 07:46:36 -05:00
|
|
|
displayLabels: [],
|
|
|
|
};
|
|
|
|
|
2023-05-15 22:07:54 -05:00
|
|
|
export interface FieldConfig extends common.HideableFieldConfig {}
|