The JavaScript Spline Range Area Chart is used to display continuous data points as a set of splines that vary between high and low values over intervals of time and across different categories.
Mark data points with built-in shapes: circles, rectangles, ellipses, vertical lines, horizontal lines, diamonds, triangles, pentagons, crosses, and pluses. In addition to these shapes, use images to make the points 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 a given angle.
Handle missing data elegantly with empty points support.
The JavaScript Spline Range Area Chart can be transposed vertically to view the data from a different perspective.
Customize the color and border of the JavaScript Spline Range Area Chart using built-in APIs.
Enable zooming and panning support when dealing with large amounts of data to visualize a data point in any region.
Easily get started with JavaScript Spline Range Area using a few simple lines of JS code, as demonstrated below. Also explore our JavaScript Spline Range Area Chart Example that shows you how to render and configure the spline range area chart component.
import { Chart, RangeAreaSeries, DateTime, Tooltip, Legend, SplineRangeAreaSeries, Category } from '@syncfusion/ej2-charts';
Chart.Inject(Chart, RangeAreaSeries, DateTime, Tooltip, Legend, SplineRangeAreaSeries, Category);
let chart: Chart = new Chart({
//Initializing Primary X Axis
primaryXAxis: {
valueType: 'Category',
edgeLabelPlacement: 'Shift',
majorGridLines: { width: 0 }
},
//Initializing Primary Y Axis
primaryYAxis:
{
labelFormat: '{value}˚C',
lineStyle: { width: 0 },
majorTickLines: { width: 0 }
},
//Initializing Chart Series
series: [
{
type: 'SplineRangeArea',
name: 'India',
dashArray: '5, 8',
opacity: 0.5,
dataSource: [
{ x: 'Jan', high: 14, low: 4 },
{ x: 'Feb', high: 17, low: 7 },
{ x: 'Mar', high: 20, low: 10 },
{ x: 'Apr', high: 22, low: 12 },
{ x: 'May', high: 20, low: 10 },
{ x: 'Jun', high: 17, low: 7 },
{ x: 'Jul', high: 15, low: 5 },
{ x: 'Aug', high: 17, low: 7 },
{ x: 'Sep', high: 20, low: 10 },
{ x: 'Oct', high: 22, low: 12 },
{ x: 'Nov', high: 20, low: 10 },
{ x: 'Dec', high: 17, low: 7 }
],
xName: 'x', high: 'high', low: 'low',
border: {
width: 2
}, fill: '#0450C2',
}
],
height: '350',
legendSettings: { visible: false },
});
chart.appendTo('#chart');
<!DOCTYPE html>
<html>
<head></head>
<body>
<div id="container">
<div id="Chart"></div>
</div>
</body>
</html>
Spline Range Area Chart User Guide
Learn the available options to customize JavaScript spline range area chart.
Spline Range Area Chart API Reference
Explore the JavaScript spline range area chart APIs.