Adds the given name and colour as the chart series.


chart_add_series(chart, name, colour)
Argument Description
chart The chart id to add to.
name The name of the series.
colour The colour of the series.

Return: Real


This function is used to add a series into the specified chart. A series is a set of data, for example a line graph or one set of columns. All data plotted on a chart comes from the series. This function returns a ds_map data structure which can then be stored in a variable. For Line and Bar Chart type can be more than one series.


 chartBalanced = chart_create(chart_line, 32, 16, 448, 256);
 usedBalanced = chart_add_series(chartBalanced, "Used Balance", c_red);

The above code will add a series stored in variable "usedBalanced" into the chart indexed in the variable "chartBalanced".

results matching ""

    No results matching ""