Your output is wrong.  You need to have something that looks like this:

var data22 = google.visualization.arrayToDataTable([
    // this row defines the column names - only include once
    ['date', 'pet 2l', 'pet 1,5', 'pet 1l', 'pet 50cl', 'pet 33cl', 'can 
33cl', 'can 25cl', 'Rb 25cl', 'Rb 35cl'],
    // these rows are your data
    ['2013-04-01',2352,235,23523,3523,235,235,23,235,235],
    ['2013-06-02',23525,252,2352,235,23523,2352,2352,2352,23],
    ['2013-07-01',0,0,0,0,0,0,0,0,0],
    ['2013-08-06',345,343,34,4543,435,3453,345,345,435],
    ['2013-09-01',100,4,6,33,11,36,37,38,16]
 ]);

On Monday, September 9, 2013 6:10:44 PM UTC-4, fekri elfarhani wrote:
>
>
> i removed the index from array , so now its  * [<?php echo(implode(",", 
> $string2);?>],*
> *         [<?php echo(implode(",", $string));?>]*
> *
> *
> and this is the javascript output on browser 
>
> var data22 = google.visualization.arrayToDataTable([
> [['date', 'pet 2l', 'pet 1,5', 'pet 1l', 'pet 50cl', 'pet 33cl', 'can 
> 33cl', 'can 25cl', 'Rb 25cl', 'Rb 35cl'],['date', 'pet 2l', 'pet 1,5', 'pet 
> 1l', 'pet 50cl', 'pet 33cl', 'can 33cl', 'can 25cl', 'Rb 25cl', 'Rb 
> 35cl'],['date', 'pet 2l', 'pet 1,5', 'pet 1l', 'pet 50cl', 'pet 33cl', 'can 
> 33cl', 'can 25cl', 'Rb 25cl', 'Rb 35cl'],['date', 'pet 2l', 'pet 1,5', 'pet 
> 1l', 'pet 50cl', 'pet 33cl', 'can 33cl', 'can 25cl', 'Rb 25cl', 'Rb 
> 35cl'],['date', 'pet 2l', 'pet 1,5', 'pet 1l', 'pet 50cl', 'pet 33cl', 'can 
> 33cl', 'can 25cl', 'Rb 25cl', 'Rb 35cl']], 
> [['2013-04-01',2352,235,23523,3523,235,235,23,235,235],['2013-06-02',23525,252,2352,235,23523,2352,2352,2352,23],['2013-07-01',0,0,0,0,0,0,0,0,0],['2013-08-06',345,343,34,4543,435,3453,345,345,435],['2013-09-01',100,4,6,33,11,36,37,38,16]]
>  
>
> ]); 
>
> but still no chart on the screen !! 
> thank you
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to