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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback


Overview

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.


Marker

Mark data points with built-in shapes: circles, rectangles, ellipses, vertical lines, horizontal lines, diamonds, triangles, and pentagons. In addition to these shapes, use images to make the points 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 a given angle.


Empty/null data point

Handle missing data elegantly with empty points support.


Vertical chart

The JavaScript Spline Range Area Chart can be transposed vertically to view the data from a different perspective.


Customization

Customize the color and border of the JavaScript Spline Range Area Chart using built-in APIs.


Zoom and pan

Enable zooming and panning support when dealing with large amounts of data to visualize a data point in any region.


JavaScript Spline Range Area Chart Code Example

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 style = 'overflow: hidden'> 
    <div id="container">
     <div id="Chart"></div>
    </div>

    <style>
        
        #control-container {
            padding: 0px !important;
        }
    </style>
</body>

</html>

Learning Resources

UG

Spline Range Area Chart User Guide

Learn the available options to customize JavaScript spline range area chart.

API

Spline Range Area Chart API Reference

Explore the JavaScript spline range area chart APIs.


65+ JAVASCRIPT UI CONTROLS

Scroll up icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon