Commit b48f8bcf by corpglory-dev

Add PiechartType enum

parent bc9d4e07
......@@ -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';
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',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment