Overview
React Step Area Chart are similar to Step Line Chart, with filled regions between vertical and horizontal transitions. Features such as zooming, panning, animation, and dynamic updates support interactive data visualization.
Multiple series
Allows plotting multiple series in a single chart to compare different data sets. Enabling the legend and tooltip provides additional information about each series.
Marker
Markers support built-in shapes such as circles, rectangles, ellipses, lines, diamonds, triangles, pentagons, crosses, and pluses. Images can also be used as marker symbols for customized presentations.
Data label
Data labels display information about data points. Templates support custom label content using HTML elements such as images, divs, and spans. Labels can also be rotated to a specified angle.
Multiple axes
Multiple axes allow different data sets with varying value ranges to be plotted within the same chart.
Zoom and pan
Enable zooming and panning support when dealing with large amount of data to visualize the data point in any region.
Empty/null data point
Handle missing data with empty points support.
Vertical chart
The Step Area Chart can be transposed vertically to view the data in different perspective.
Customization
Customize the color and border of the Step Area Chart using built-in APIs.
Code snippet
Get started with the React Step Area Chart using the a few simple lines of HTML and JavaScript code, as demonstrated below. Also explore demo to learn how to render and configure the component.
import {AxisModel,ChartComponent,Inject,SeriesCollectionDirective, SeriesDirective, StepAreaSeries} from'@syncfusion/ej2-react-charts';
import * as React from 'react';
class App extends React.Component<{}, {}> {
public primaryXAxis: AxisModel = { };
public data1: any[]= [{ x: 2000, y: 180 }, { x: 2001, y: 240 }, { x: 2002, y: 370 }, { x: 2003, y: 200 },
{ x: 2004, y: 229 }, { x: 2005, y: 210 }, { x: 2006, y: 337 }, { x: 2007, y: 258 },
{ x: 2008, y: 300 }, { x: 2009, y: 173 }, { x: 2010, y: 220 }, { x: 2011, y: 309 }];
public render() {
return <ChartComponent id='charts' primaryXAxis={this.primaryXAxis}>
<Inject services={[StepAreaSeries]} />
<SeriesCollectionDirective>
<SeriesDirective dataSource={this.data1} xName='x' yName='y' type='StepArea'/>
</SeriesCollectionDirective>
</ChartComponent>
}
};
ReactDOM.render(
<App />,
document.getElementById('charts') as HTMLElement
);<!DOCTYPE html>
<html>
<body>
<div id="charts"></div>
</body>
</html>Learning resources
Explore all Syncfusion React components
Explore over 140+ React UI components featuring established, and production-ready controls built for modern web app development.
- SMART COMPONENTSDATA VISUALIZATIONDROPDOWNSFILE VIEWERS & EDITORSBUTTONSINTERACTIVE CHATINPUTSNAVIGATIONNOTIFICATIONS

