+++ # ----------------------------------------------------------------------- # Do not edit this file. It is automatically generated by API Documenter. # ----------------------------------------------------------------------- title = "BarGauge" keywords = ["grafana","documentation","sdk","@grafana/ui"] type = "docs" draft = true +++ ## BarGauge class Signature ```typescript export declare class BarGauge extends PureComponent ``` Import ```typescript import { BarGauge } from '@grafana/ui'; ``` Properties | Property | Modifiers | Type | Description | | --- | --- | --- | --- | | [defaultProps](#defaultprops-property) | static | Partial<Props> | | Methods | Method | Modifiers | Description | | --- | --- | --- | | [getCellColor(positionValue)](#getcellcolor-method) | | | | [render()](#render-method) | | | | [renderBarAndValue()](#renderbarandvalue-method) | | | | [renderBasicAndGradientBars()](#renderbasicandgradientbars-method) | | | | [renderRetroBars()](#renderretrobars-method) | | | ### defaultProps property Signature ```typescript static defaultProps: Partial; ``` ### getCellColor method Signature ```typescript getCellColor(positionValue: TimeSeriesValue): CellColors; ``` Parameters | Parameter | Type | Description | | --- | --- | --- | | positionValue | TimeSeriesValue | | Returns: `CellColors` ### render method Signature ```typescript render(): JSX.Element; ``` Returns: `JSX.Element` ### renderBarAndValue method Signature ```typescript renderBarAndValue(): React.ReactNode; ``` Returns: `React.ReactNode` ### renderBasicAndGradientBars method Signature ```typescript renderBasicAndGradientBars(): ReactNode; ``` Returns: `ReactNode` ### renderRetroBars method Signature ```typescript renderRetroBars(): ReactNode; ``` Returns: `ReactNode`