AnyStock Column Series


Column series is a standard series that uses columns to show the values of a parameter changing through time or to show the difference between values of similar subjects in some area. You can find all information about creating a standard column chart in the Column Chart article.

AnyStock Column 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.

table =;
  ['2015-12-24', 27],
  ['2015-12-25', 25.5],
  ['2015-12-26', 23.1],
  ['2015-12-27', 26.9],
  ['2015-12-28', 29.7],
  ['2015-12-29', 30.3],
  ['2015-12-30', 23.7],
  ['2015-12-31', 20.4],
  ['2016-01-28', 28.7]

mapping = table.mapAs();
mapping.addField('value', 1);


The next sample contains the same data arranged as array of objects.

table ='x');
  {"x":'2015-12-24', value: 27},
  {"x":'2015-12-25', value: 25.5},
  {"x":'2015-12-26', value: 23.1},
  {"x":'2015-12-27', value: 26.9},
  {"x":'2015-12-28', value: 29.7},
  {"x":'2015-12-29', value: 30.3},
  {"x":'2015-12-30', value: 23.7}

mapping = table.mapAs({x:'x', value:'value'});


More about data settings in stocks can be found in the Stock Data tutorial.

Multi series

Multiple series on different plots:

// series of the first plot
var series_as = chart.plot(0).column(mapping_as);"Alice's Springs");

// series of the second plot
var series_sydney = chart.plot(1).column(mapping_sydney);"Sydney");


See the Chart Plots article to know how to manage the plots.

As stocks are intended to show large amounts of data, this data needs to be compressed at some point to be displayed correctly. All information about them can be found in the Data Grouping article.

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 default colors of the columns fill and stroke use fill() and stroke().

Use the hatchFill() method to change the hatch fill.

// australia series coloring

// sydney series coloring