Commit b48f8bcf by corpglory-dev

Add PiechartType enum

parent bc9d4e07
...@@ -26,4 +26,4 @@ export { ValueMappingsEditor } from './ValueMappingsEditor/ValueMappingsEditor'; ...@@ -26,4 +26,4 @@ export { ValueMappingsEditor } from './ValueMappingsEditor/ValueMappingsEditor';
export { Gauge } from './Gauge/Gauge'; export { Gauge } from './Gauge/Gauge';
export { Switch } from './Switch/Switch'; export { Switch } from './Switch/Switch';
export { EmptySearchResult } from './EmptySearchResult/EmptySearchResult'; 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 { export interface PiechartOptions {
pieType: string; pieType: PiechartType;
strokeWidth: number; strokeWidth: number;
valueOptions: PiechartValueOptions; valueOptions: PiechartValueOptions;
...@@ -12,7 +14,7 @@ export interface PiechartValueOptions { ...@@ -12,7 +14,7 @@ export interface PiechartValueOptions {
} }
export const defaults: PiechartOptions = { export const defaults: PiechartOptions = {
pieType: 'pie', pieType: PiechartType.PIE,
strokeWidth: 1, strokeWidth: 1,
valueOptions: { valueOptions: {
unit: 'short', 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