mirror of
https://github.com/grafana/grafana.git
synced 2026-08-18 09:05:04 -05:00
Add PiechartType enum
This commit is contained in:
@@ -26,4 +26,4 @@ export { ValueMappingsEditor } from './ValueMappingsEditor/ValueMappingsEditor';
|
||||
export { Gauge } from './Gauge/Gauge';
|
||||
export { Switch } from './Switch/Switch';
|
||||
export { EmptySearchResult } from './EmptySearchResult/EmptySearchResult';
|
||||
export { Piechart, PiechartDataPoint } from './Piechart/Piechart';
|
||||
export { Piechart, PiechartDataPoint, PiechartType } from './Piechart/Piechart';
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
import { PiechartType } from '@grafana/ui';
|
||||
|
||||
export interface PiechartOptions {
|
||||
pieType: string;
|
||||
pieType: PiechartType;
|
||||
strokeWidth: number;
|
||||
|
||||
valueOptions: PiechartValueOptions;
|
||||
@@ -12,7 +14,7 @@ export interface PiechartValueOptions {
|
||||
}
|
||||
|
||||
export const defaults: PiechartOptions = {
|
||||
pieType: 'pie',
|
||||
pieType: PiechartType.PIE,
|
||||
strokeWidth: 1,
|
||||
valueOptions: {
|
||||
unit: 'short',
|
||||
|
||||
Reference in New Issue
Block a user