mirror of
https://github.com/grafana/grafana.git
synced 2025-02-14 17:43:35 -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>
64 lines
1.4 KiB
TypeScript
64 lines
1.4 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]);
|
|
|
|
/**
|
|
* Select the pie chart display style.
|
|
*/
|
|
export enum PieChartType {
|
|
Donut = 'donut',
|
|
Pie = 'pie',
|
|
}
|
|
|
|
/**
|
|
* 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.
|
|
*/
|
|
export enum PieChartLabels {
|
|
Name = 'name',
|
|
Percent = 'percent',
|
|
Value = 'value',
|
|
}
|
|
|
|
/**
|
|
* Select values to display in the legend.
|
|
* - Percent: The percentage of the whole.
|
|
* - Value: The raw numerical value.
|
|
*/
|
|
export enum PieChartLegendValues {
|
|
Percent = 'percent',
|
|
Value = 'value',
|
|
}
|
|
|
|
export interface PieChartLegendOptions extends common.VizLegendOptions {
|
|
values: Array<PieChartLegendValues>;
|
|
}
|
|
|
|
export const defaultPieChartLegendOptions: Partial<PieChartLegendOptions> = {
|
|
values: [],
|
|
};
|
|
|
|
export interface Options extends common.OptionsWithTooltip, common.SingleStatBaseOptions {
|
|
displayLabels: Array<PieChartLabels>;
|
|
legend: PieChartLegendOptions;
|
|
pieType: PieChartType;
|
|
}
|
|
|
|
export const defaultOptions: Partial<Options> = {
|
|
displayLabels: [],
|
|
};
|
|
|
|
export interface FieldConfig extends common.HideableFieldConfig {}
|