chart_get_data
Returns the value of a given chart series given index.
Syntax
chart_get_data(series, index)
Argument | Description |
---|---|
series | The series id to check. |
index | The index to look at. |
Return: Real
Description
With this function you can get the value of a chart series on given index. 0 is the start of the index.
Example
chartBalanced = chart_create(chart_line, 32, 16, 448, 256);
usedBalanced = chart_add_series(chartBalanced, "Used Balance", c_red);
chart_add_data(usedBalanced, 203);
chart_add_data(usedBalanced, 323);
chart_add_data(usedBalanced, 202);
value = chart_get_data(usedBalanced, 1)
The above code will get the value of the chart series "usedBalanced" on index 1 and store it in the variable "value".