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:
API | |
---|---|
Class | anychart.core.cartesian.series.RangeSplineArea |
DATA | |
Data Fields | x, value |
Multiple Series | YES |
OPTIONS | |
Stacked | N/A |
Vertical | Vertical Range Spline Area |
3D | N/A |
Error Bars | N/A |
SUPPORTED CHART PLOTS | |
Polar | N/A |
Radar | N/A |
Scatter | N/A |
Stock | Stock 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 |
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
var 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();
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.