# Function BarChart

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

A React component representing categorical data with horizontal rectangular bars, whose lengths are proportional to the values that they represent. See Bar Chart for more information.

# Parameters

Parameter Type Description
props BarChartProps Bar chart properties
context? any -

# Returns

null | ReactElement< any, any >

Bar Chart component

# Example

An example of using the component to visualize the Sample ECommerce data source:

    category: [DM.Commerce.AgeRange],
    value: [measures.sum(DM.Commerce.Revenue)],
    breakBy: [DM.Commerce.Gender],
  filters={[filters.greaterThan(DM.Commerce.Revenue, 1000)]}
  onDataPointClick={(point, nativeEvent) => {
    console.log('clicked', point, nativeEvent);