// Libraries import React, { PureComponent } from 'react'; // Services & Utils import { config } from 'app/core/config'; // Components import { Gauge, DataLinksContextMenu } from '@grafana/ui'; // Types import { GaugeOptions } from './types'; import { VizRepeater } from '@grafana/ui'; import { FieldDisplay, getFieldDisplayValues, VizOrientation, PanelProps } from '@grafana/data'; import { getFieldLinksSupplier } from 'app/features/panel/panellinks/linkSuppliers'; export class GaugePanel extends PureComponent> { renderValue = (value: FieldDisplay, width: number, height: number): JSX.Element => { const { options } = this.props; const { field, display } = value; return ( {({ openMenu, targetClassName }) => { return ( ); }} ); }; getValues = (): FieldDisplay[] => { const { data, options, replaceVariables, fieldConfig } = this.props; return getFieldDisplayValues({ fieldConfig, fieldOptions: options.fieldOptions, replaceVariables, theme: config.theme, data: data.series, autoMinMax: true, }); }; render() { const { height, width, data, renderCounter } = this.props; return ( ); } }