AnyStock Range Step Area Series


Range Step Area Series is quite similar to Range Area series, both in visualization and purpose. It uses two values for a point, each point looks like a both-sided step, so the whole series form a polygon. Find more information about using Range Areas of different types in Basic Charts in the Range Step Area Charts tutorial.

AnyStock Step Area Series Adjustment


The data in stocks should be formatted as a table, there are two ways of setting it: as an array of arrays or as an array of objects.

Here is how to set data as an array of arrays, array contains values and then you map the data set to tell the component which column contains values.

// set the data
table =;
    ['2004-07-01', 23.65, 23.68],
    ['2004-07-02', 23.14, 23.21],
    ['2004-07-06', 22.68, 22.71],
    ['2004-07-07', 22.41, 22.74],
    ['2004-07-08', 22.29, 22.65],
    ['2004-07-09', 22.27, 22.58]
// map the data
mapping = table.mapAs();
mapping.addField('low', 1);
mapping.addField('high', 2);


The next sample demonstrates the data arranged as array of objects.

// set the data
table ='x');
    {'x': "2004-07-01", 'low': 23.65, 'high': 23.68},
    {'x': "2004-07-02", 'low': 23.14, 'high': 23.21},
    {'x': "2004-07-06", 'low': 22.68, 'high': 22.71},
    {'x': "2004-07-07", 'low': 22.41, 'high': 22.74},
    {'x': "2004-07-08", 'low': 22.29, 'high': 22.65},
    {'x': "2004-07-09", 'low': 22.27, 'high': 22.58}
// map the data
mapping = table.mapAs({'x': 'x', 'low': 'low', 'high': 'high'});


You can read more about mananging Data in Stocks in the Stock Data tutorial.

Multi series

Simple multi-series chart:

// set the series
var series_ex1 = chart.plot(0).rangeStepArea(mapping_ex1);"Experiment 1");
var series_ex2 = chart.plot(0).rangeStepArea(mapping_ex2);"Experiment 2");


Multiple series on different plots:

// set the series
var series_ex1 = chart.plot(0).rangeStepArea(mapping_ex1);"Experiment 1");
var series_ex2 = chart.plot(1).rangeStepArea(mapping_ex2);"Experiment 2");


More about plots can be found in the Plots tutorial.

Switching series type

You can change the type of the series to another compatible type. See the Series Type and series types table.

To switch the series use seriesType() method.



To change the fill color using the fill() method.

To set the hatch type as a paramater of the hatchFill() method.

// coloring
series_ex1.fill("#f00 0.6");


Hovered state

Use the dateTimeHighlighter() method to adjust crosshair.

// crosshair settings
chart.plot(0).dateTimeHighlighter("green", 0.5, "10 4");


You are looking at an outdated v7 version of this document. Switch to the v8 version to see the up to date information.