We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Syncfusion Feedback


Overview

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.


Multi series

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.


Marker

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 label

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.


Multiple axes

Use multiple axes to plot different data sets that widely vary from one other.


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 the missed data elegantly 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 area chart using built-in APIs.


JavaScript Step Area Chart Code Example

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>

Learning Resources

UG

Step Area Chart User Guide

Learn the available options to customize the JavaScript step area chart.

API

Step Area Chart API Reference

Explore the JavaScript step area chart APIs.


85+ JAVASCRIPT UI CONTROLS

Scroll up icon