// Libraries import React, { PureComponent } from 'react'; // Components import { Select, FormLabel, PanelOptionsGroup } from '@grafana/ui'; // Types import { FormField, PanelEditorProps } from '@grafana/ui'; import { PiechartType } from '@grafana/ui'; import { PiechartOptions } from './types'; import * as _ from 'lodash'; const labelWidth = 8; const piechartOptions = [{ value: PiechartType.PIE, label: 'Pie' }, { value: PiechartType.DONUT, label: 'Donut' }]; export class PiechartOptionsBox extends PureComponent> { onPieTypeChange = ({ target }) => this.props.onOptionsChange({ ...this.props.options, pieType: target.value }); onStrokeWidthChange = ({ target }) => this.props.onOptionsChange({ ...this.props.options, strokeWidth: target.value }); render() { const { options } = this.props; const { pieType, strokeWidth } = options; return (
Type