PieChartPanelEditor.tsx 565 B

123456789101112131415161718192021
  1. import React, { PureComponent } from 'react';
  2. import { PanelEditorProps, PanelOptionsGrid } from '@grafana/ui';
  3. import ValueOptions from './ValueOptions';
  4. import { PiechartOptions } from './types';
  5. export default class PiechartPanelOptions extends PureComponent<PanelEditorProps<PiechartOptions>> {
  6. static defaultProps = defaultProps;
  7. render() {
  8. const { onChange, options } = this.props;
  9. return (
  10. <>
  11. <PanelOptionsGrid>
  12. <ValueOptions onChange={onChange} options={options} />
  13. </PanelOptionsGrid>
  14. </>
  15. );
  16. }
  17. }