The JavaScript Step Area chart is like a step line chart except that the area connected through vertical and horizontal lines are shaded with color. Supports features like zooming, panning, animation, and dynamic updates.
Allows you to plot multiple series in a single chart to compare different data sets. Enabling legend and tooltip gives more information about the individual series.
Marks data points with built-in shapes such as circles, rectangles, ellipses, vertical lines, horizontal lines, diamonds, triangles, pentagons, crosses, and pluses. In addition to these shapes, use images to make the point more attractive.
Data labels display information about data points. Add a template to display data labels with HTML elements such as images, DIV, and spans for more informative data labels. You can rotate a data label by its given angle.
Use multiple axes to plot different data sets that widely vary from one other.
Enable zooming and panning support when dealing with large amount of data to visualize the data point in any region.
Handle the missed data elegantly with empty points support.
The step area chart can be transposed vertically to view the data in different perspective.
Customize the color and border of the area chart using built-in APIs.
Easily get started with JavaScript Step Area using a few simple lines of JS code, as demonstrated below. Also explore our JavaScript Step Area Chart Example that shows you how to render and configure the spline area chart component.
import { Chart, StepAreaSeries } from '@syncfusion/ej2-charts';
Chart.Inject(Chart, StepAreaSeries);
let chart: Chart = new Chart({
series:[{
type: 'StepArea',
dataSource: [{ 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 }],
name: 'Non-Renewable', fill: '#0073DC',
xName: 'x', width: 2,
yName: 'y',
},
],
}, '#Chart');
<!DOCTYPE html>
<html>
<head></head>
<body>
<div id="container">
<div id="Chart"></div>
</div>
</body>
</html>
Learn the available options to customize the JavaScript step area chart.
Explore the JavaScript step area chart APIs.