Image_Graph_Dataset_Trivial &Image_Graph_Dataset_Trivial(
[array
$dataArray = false])
|
|
Image_Graph_Dataset_Trivial [Constructor]
Pass an associated array ($data[$x] = $y) to the constructor for easy data addition. Alternatively (if multiple entries with same x value is required) pass an array with (x, y) values: $data[$id] = array('x' => $x, 'y' => $y);
NB! If passing the 1st type array at this point, the x-values will also be used for ID tags, i.e. when using Image_Graph_Fill_Array. In the 2nd type the key/index of the "outermost" array will be the id tag (i.e. $id in the example)
Parameters: