Add PiechartType enum

This commit is contained in:
corpglory-dev
2019-02-27 20:04:57 +03:00
parent bc9d4e07d0
commit b48f8bcf4c
2 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -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';
+4 -2
View File
@@ -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',