Bar Formatter with remote data

43 views
Skip to first unread message

David Rodger

unread,
Aug 3, 2011, 7:10:43 AM8/3/11
to Google Visualization API
Hi there

Has anyone an idea of how to display a bar formatter table with remote
source data (google spreadsheets).

Do i need to input the error query and response?

I can display a table but I come a little unstuck at the formatter
around this point:

var table = new
google.visualization.Table(document.getElementById('visualization'));

var formatter = new google.visualization.TableBarFormat({width:
120});
formatter.format(WHAT WOULD I ENTER HERE? data, 1); // Apply
formatter to second column

table.draw(data, {allowHtml: true, showRowNumber: true});
}

Thank you for your time on this

asgallant

unread,
Aug 3, 2011, 7:50:19 AM8/3/11
to google-visua...@googlegroups.com
It's "BarFormat" not "TableBarFormat":

var formatter = new google.visualization.BarFormat({width: 120});
formatter.format(data, 1);



miriam natanzon

unread,
Mar 1, 2012, 3:03:46 AM3/1/12
to google-visua...@googlegroups.com
Any updates for this issue???
i've the same question.
the answer below doesn't tell what to put instead of "data"...

Miriam

Jinji

unread,
Mar 1, 2012, 8:38:08 AM3/1/12
to google-visua...@googlegroups.com
Assuming I understood your question correctly, 'data' is an instance of google.visualization.DataTable, the same instance you'll pass to table.draw().


--
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/-/r1LrInaiHTEJ.
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