Important: This documentation is about an older version. It's relevant only to the release noted, many of the features and functions have been updated or replaced. Please view the current version.
BarGauge class
Signature
export declare class BarGauge extends PureComponent<Props>
Import
import { BarGauge } from '@grafana/ui';
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
defaultProps | static | Partial<Props> |
Methods
Method | Modifiers | Description |
---|---|---|
getCellColor(positionValue) | ||
render() | ||
renderBarAndValue() | ||
renderBasicAndGradientBars() | ||
renderRetroBars() |
defaultProps property
Signature
static defaultProps: Partial<Props>;
getCellColor method
Signature
getCellColor(positionValue: TimeSeriesValue): CellColors;
Parameters
Parameter | Type | Description |
---|---|---|
positionValue | TimeSeriesValue |
Returns:
CellColors
render method
Signature
render(): JSX.Element;
Returns:
JSX.Element
renderBarAndValue method
Signature
renderBarAndValue(): React.ReactNode;
Returns:
React.ReactNode
renderBasicAndGradientBars method
Signature
renderBasicAndGradientBars(): ReactNode;
Returns:
ReactNode
renderRetroBars method
Signature
renderRetroBars(): ReactNode;
Returns:
ReactNode