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); rates.name("Highest rate"); // create ohlc series var prices = plot_line_ohlc.ohlc(ohlcMapping); var pricesName = prices.name("ACME Corp."); // create line series var requests = plot_line_ohlc.line(lineMapping); requests.name("Requests");
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.
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 rates.fill('#00838F'); // set stroke for the requests series requests.stroke("#00796B");
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 chart.selectRange('2014-02-01','2014-05-06'); // set the color for the selected columns in the thumbnail series thSeries.selectedFill("#4527A0");