# Function LineChart

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

A React component displaying data as a series of points connected by a line. Used to show trends or changes over time. See Line Chart for more information.

# Parameters

Parameter Type Description
props LineChartProps Line chart properties
context? any -

# Returns

null | ReactElement< any, any >

Line Chart component

# Example

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

<LineChart
  dataSet={DM.DataSource}
  dataOptions={{
    category: [DM.Commerce.Date.Years],
    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);
  }}
/>

#