google.visualization.DataTable Class Method getColumnLabel(columnIndex)

128 views
Skip to first unread message

Sinan

unread,
May 31, 2012, 12:07:53 PM5/31/12
to Google Visualization API
Hi all i have a issue with the method getColumnLabel(columnIndex).
I retrieve data from a spreadsheet but if the spreadsheet in the 2nd
row have't a number the method return the first and the second row
concatenated as header of the table.

Anyone know how to solve that issue??

Thank you

asgallant

unread,
May 31, 2012, 12:29:31 PM5/31/12
to google-visua...@googlegroups.com
I don't know why it does that, but it isn't a problem with the getColumnLabel method.  I assume by "spreadsheet" you mean Google spreadsheet or Fusion Tables, correct?  If so, then the column labels are being assigned on the server-side, and it has almost nothing to do with the Visualization API, it's an issue with the way the Query interface was implemented on the server.

asgallant

unread,
May 31, 2012, 12:33:09 PM5/31/12
to google-visua...@googlegroups.com
Oops...hit post too soon  >;o)

You can split the extra text out of the column headers if you know where to split them.  If you post your code, I'll see what I can do to help.

Jinji

unread,
May 31, 2012, 1:00:23 PM5/31/12
to google-visua...@googlegroups.com
The spreadsheet tries to guess how many rows are headers. If it guessed wrong, fix it using the headers=N URL parameter. See here.

--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-visualization-api/-/t-lovQK-zyAJ.

To post to this group, send email to google-visua...@googlegroups.com.
To unsubscribe from this group, send email to google-visualizati...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.

Reply all
Reply to author
Forward
0 new messages