|
|
| |
1. Inserting an array to setValues() |
|
Reply |
|
|
 tuomas | 2009-01-13 17:47:14 |
Hello!
I've created an array which contains array.
$Values[index] = array(0,0,value);
$Values[index++] = array(0,1,value);
etc..
Then i call $chart->setValues($Values), which generates an error PHP Notice: Undefined index: in QGoogleGraph.class.php on line 201 |
| |
2. Re: Inserting an array to setValues() |
|
Reply |
|
|
 Tom Schaefer | 2009-01-14 12:13:59 - In reply to message 1 from tuomas |
When I look at your array composition,
then it is no wonder that the class runs into an error.
The array has an assoc key named index.
Goto http://www.query4u.de/vizapi/
and look into the sample code.
There you will find the array notation:
or try this:
array(
array(0, 0, '2004'),
array(0, 1, 1000),
array(0, 2, 400),
array(1, 0, '2005'),
array(1, 1, 1170),
array(1, 2, 460),
array(2, 0, '2006'),
array(2, 1, 660),
array(2, 2, 1120),
array(3, 0, '2007'),
array(3, 1, 1030),
array(3, 2, 540),
) |
|