SetDataValues

SetDataValues — Set the data array for plotting

Synopsis

$plot->SetDataValues($dv)

Description

SetDataValues sets the data array which contains the data values to be plotted. Use of this function is required.

Parameters

$dv

The data array, containing values according to the data type format set by SetDataType.

Notes

The data array $dv must use zero-based sequential integer indexes. Each entry in the data array is also an array, representing one 'record'. The record arrays need not use zero based sequential integer indexes; the entries are processed in the same order in which they were defined, regardless of the index values.

For more on data arrays and data types, see Section 3.3, “PHPlot Data Types”.