BarGauge class

Signature

  1. export declare class BarGauge extends PureComponent<Props>

Import

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

Properties

PropertyModifiersTypeDescription
defaultPropsstaticPartial<Props>

Methods

MethodModifiersDescription
getCellColor(positionValue)
render()
renderBarAndValue()
renderBasicAndGradientBars()
renderRetroBars()

defaultProps property

Signature

  1. static defaultProps: Partial<Props>;

getCellColor method

Signature

  1. getCellColor(positionValue: TimeSeriesValue): CellColors;

Parameters

ParameterTypeDescription
positionValueTimeSeriesValue

Returns:

CellColors

render method

Signature

  1. render(): JSX.Element;

Returns:

JSX.Element

renderBarAndValue method

Signature

  1. renderBarAndValue(): React.ReactNode;

Returns:

React.ReactNode

renderBasicAndGradientBars method

Signature

  1. renderBasicAndGradientBars(): ReactNode;

Returns:

ReactNode

renderRetroBars method

Signature

  1. renderRetroBars(): ReactNode;

Returns:

ReactNode