Re: Not all rows have column value

29 views
Skip to first unread message

asgallant

unread,
Jun 5, 2012, 9:22:38 AM6/5/12
to google-visua...@googlegroups.com
When you try to draw the chart, what is wrong?  If you post your code, I can take a look and see what might need to be changed to make it look like what you want.

On Monday, June 4, 2012 4:19:34 PM UTC-4, theshiftexchange wrote:
Hi,

I've searched the documentation and API etc - and I cant work out how to draw a line chart like the one below. I'm guessing I need a data source "like" this, but I've tried a few things and cant get it to work:

dataTable.addColumn('number', 'x');
dataTable.addColumn('number', 'line1');
dataTable.addColumn('number', 'line2');
dataTable.addRows([
                    [1, 1, 4],
                    [3, null, 6],
                    [4, 6, 4],                
                  ]);

Is this type of line chart possible in Google Visulization API?

rio

unread,
Jun 7, 2012, 1:15:45 AM6/7/12
to google-visua...@googlegroups.com
I think i faintly recall the code for Null is -
(a minus symbol)

I handled it different because i am using line and bar charts i set displayed Null values to -99. And set a min to displayed X-axis to 0, And not add the dataset if all values are null.

rio

unread,
Jun 7, 2012, 1:18:32 AM6/7/12
to google-visua...@googlegroups.com
In addition to this you cant have a comma on the last line with nothing after it.

It should be ]]

double close brackets
Reply all
Reply to author
Forward
0 new messages