Put null's in the empty places instead of blanks:

var data = google.visualization.arrayToDataTable([
    ['Year', 'Sales', 'Expenses'],
    ['2004', null, 400],
    ['2005', 1170, null],

    ['2006', null, 1120],

    ['2007', 1030, null],

    ['2008', 1200, 380]
]);


On Saturday, March 9, 2013 6:42:28 AM UTC-5, [email protected] wrote:
>
> Hello, 
> i have a question about the Line Charts.
> In the example is the data like this:
>
> var data = google.visualization.arrayToDataTable([
>           ['Year', 'Sales', 'Expenses'],
>           ['2004',  1000,      400],
>           ['2005',  1170,      460],
>           ['2006',  660,       1120],
>           ['2007',  1030,      540]
>         ]);
>
> The problem is, that i didn't have the full data.
> My data will be looking like that
>
> var data = google.visualization.arrayToDataTable([
>           ['Year', 'Sales', 'Expenses'],
>           ['2004',  ,      400],
>           ['2005',  1170,      ],
>           ['2006',  ,       1120],
>           ['2007',  1030,     ]
>           ['2008',  1200,  380]
>         ]);
>
>
> For this ['2004',  ,      400], i have a break in the line.
>
> And this ['2007',  1030,     ] is a error.
>
> So for ideas i will be thankful.
>
>
>

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to