# Function BarChart

BarChart(props, deprecatedLegacyContext?): null | ReactElement< any, any >

A React component representing categorical data with horizontal rectangular bars, whose lengths are proportional to the values that they represent.

# Example

Bar chart displaying total revenue per year from the Sample ECommerce data model.

Additional Bar Chart examples:

# Parameters

Parameter Type Description
props BarChartProps Bar chart properties
deprecatedLegacyContext? any ::: warning Deprecated

:::

See

React Docs (opens new window)

# Returns

null | ReactElement< any, any >

Bar Chart component