mirror of
https://github.com/grafana/grafana.git
synced 2025-02-20 11:48:34 -06:00
* Split all named types out into defs, etc. * Use latest cuetsy, refactor generators accordingly * Return AST type from plugin TS generator * Near-complete checkin of TS veneer code generator * First full completed pass * Improve the attribute name * Defer use of the dashboard veneer type to follow-up * Remove dummy index, prettier on veneer * Fix merge errors in gen.go * Add match field to SpecialValueMap * Fix backend lint errors
64 lines
1.4 KiB
TypeScript
64 lines
1.4 KiB
TypeScript
// This file is autogenerated. DO NOT EDIT.
|
|
//
|
|
// Generated by public/app/plugins/gen.go
|
|
//
|
|
// Derived from the Thema lineage declared in models.cue
|
|
//
|
|
// Run `make gen-cue` from repository root to regenerate.
|
|
|
|
|
|
|
|
import * as ui from '@grafana/schema';
|
|
|
|
export const PanelModelVersion = 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 ui.VizLegendOptions {
|
|
values: Array<PieChartLegendValues>;
|
|
}
|
|
|
|
export const defaultPieChartLegendOptions: Partial<PieChartLegendOptions> = {
|
|
values: [],
|
|
};
|
|
|
|
export interface PanelOptions extends ui.OptionsWithTooltip, ui.SingleStatBaseOptions {
|
|
displayLabels: Array<PieChartLabels>;
|
|
legend: PieChartLegendOptions;
|
|
pieType: PieChartType;
|
|
}
|
|
|
|
export const defaultPanelOptions: Partial<PanelOptions> = {
|
|
displayLabels: [],
|
|
};
|
|
|
|
export interface PanelFieldConfig extends ui.HideableFieldConfig {}
|