AnyStock Series Overview


AnyStock supports a lot of different series types, some of them compatible to be switched during run time.

Here's a sample where we put three of them.

// set the plots
var plot_line_ohlc = chart.plot(0);
var plot_column = chart.plot(1);

// create the column series
var rates = plot_column.column(mapping);"Highest rate");

// create ohlc series
var prices = plot_line_ohlc.ohlc(ohlcMapping);
var pricesName ="ACME Corp.");

// create line series
var requests = plot_line_ohlc.line(lineMapping);"Requests");

JsFiddle Playground

You can see that the whole chart is somewhat divided in two parts, where one contains ohlc and line series and the second one has column in it, while both parts have identical x-Axis and are being scrolled simultaneously. This can be done using plots. You can read about them in the article about Chart Plots. Also one of our plots has two axes. You can find information about managing axes in the Axis tutorial.

AnyStock Series Adjusting

Series in AnyStock chart are much alike normal series of Basic charts, except for having "hovered" and "selected" state. So we can adjust the colors of the series in normal state, adjust the tooltips, etc. Let's now create a sample with adjusted colors.

// set the filling color for the rates series

// set stroke for the requests series

JsFiddle Playground

AnyStock Scroller Series Adjusting

In case of adding the thumbnail series to the scroller, you should know that those series have the "selected" state. Let's add a background series of a column type to the scroll bar background and adjust its "selected" state colors.

// create a thumbnail series in the scroller
var thSeries = chart.scroller().column(lineMapping);

// define the shown part of a chart

// set the color for the selected columns in the thumbnail series

JsFiddle Playground

List of supported series

AnyStock supports series of different types, like Line Series, OHLC, Marker and many other - find them all in the Supported Series list. Compatible series types can be switched during run time.

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