Gauge class

Signature

  1. export declare class Gauge extends PureComponent<Props>

Import

  1. import { Gauge } from '@grafana/ui';

Properties

PropertyModifiersTypeDescription
canvasElementany
defaultPropsstaticPartial<Props>
renderVisualization() => JSX.Element

Methods

MethodModifiersDescription
componentDidMount()
componentDidUpdate()
draw()
getFormattedThresholds(decimals)
render()

canvasElement property

Signature

  1. canvasElement: any;

defaultProps property

Signature

  1. static defaultProps: Partial<Props>;

renderVisualization property

Signature

  1. renderVisualization: () => JSX.Element;

componentDidMount method

Signature

  1. componentDidMount(): void;

Returns:

void

componentDidUpdate method

Signature

  1. componentDidUpdate(): void;

Returns:

void

draw method

Signature

  1. draw(): void;

Returns:

void

getFormattedThresholds method

Signature

  1. getFormattedThresholds(decimals: number): Threshold[];

Parameters

ParameterTypeDescription
decimalsnumber

Returns:

Threshold[]

render method

Signature

  1. render(): JSX.Element;

Returns:

JSX.Element