Range Spline Area Chart

Overview

A range spline area chart is a range area chart in which data points are connected by smooth curves: this modification is aimed to improve the design of a chart.

Like the regular range area chart, it looks like two lines representing low and high Y-values, the area between these lines being filled with color or a pattern to emphasize the difference between high and low values.

The Range Spline Area and Range Area chart types share all the settings, so this article explains just how to create a basic Range Area chart. To learn about other settings, read the Range Area Chart article. You can also see the table below to get a brief overview of the Range Spline Area chart's characteristics:

ModulesCore + Basic Cartesian / Base
API
Classanychart.core.cartesian.series.RangeSplineArea
DATA
Data Fieldsx, value
Multiple SeriesYES
OPTIONS
StackedN/A
VerticalVertical Range Spline Area
3DN/A
Error BarsN/A
SUPPORTED CHART PLOTS
PolarN/A
RadarN/A
ScatterN/A
StockStock Range Spline Area
RELATED TYPES
Area
Spline Area
Step Area
Range Area
Range Step Area
HiLo
SEE ALSO
Chartopedia: Range Spline Area Chart
General Settings

Modules

The Range Spline Area chart requires adding the Core and Basic Cartesian modules:

<script src="https://cdn.anychart.com/releases/8.13.0/js/anychart-core.min.js"></script>
<script src="https://cdn.anychart.com/releases/8.13.0/js/anychart-cartesian.min.js"></script>

Alternatively, you can use the Base module, which includes, among other things, the two modules mentioned above:

<script src="https://cdn.anychart.com/releases/8.13.0/js/anychart-base.min.js"></script>

Learn more: Modules.

Quick Start

To create a Range Spline Area series, use the rangeSplineArea() method (before, of course, you should create a chart by using anychart.area() or any other cartesian chart constructor).

Since range area charts plot two Y-values per data point, you need to specify two values for each category by using the low and high parameters.

// create data
var data = [
  {x: "January", low: 0.7, high: 6.1},
  {x: "February", low: 0.6, high: 6.3},
  {x: "March", low: 1.9, high: 8.5},
  {x: "April", low: 3.1, high: 10.8},
  {x: "May", low: 5.7, high: 14.4}
];

// create a chart
chart = anychart.area();

// create a range spline area series and set the data
var series = chart.rangeSplineArea(data);

// set the container id
chart.container("container");

// initiate drawing the chart
chart.draw();

Playground

Settings

The Rangee Spline Area chart is a modification of the Range Area chart, so these two types share almost all the settings. You can find more settings in this article: Range Area Chart.

Also, in AnyChart there are many settings that are configured in the same way for all chart types, including the Range Spline Area chart (for example, legend and interactivity settings): General Settings.

In addition, see the full list of methods available for the Range Spline Area series: anychart.core.cartesian.series.RangeSplineArea.