You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google Visualization API
Hi all,
I'm trying to add text to a set of columns in a DataTable, but for
certain columns I want to align the text to the right. I've notice
that by default for columns of type STRING the content is left
aligned, and for type NUMBER the content is right aligned.
DataTable data = DataTable.create();
data.addColumn(ColumnType.STRING, "This should be left aligned");
data.addColumn(ColumnType.STRING, "This should be right aligned");
data.addRows(X);
data.setValue(0, 0,"Value A - On the left");
data.setValue(0, 1,"Value B - On the right");
Does anyone how to make this work the way I need?
Many thanks in advanced,
Luis
Luis
unread,
Aug 20, 2010, 11:23:14 AM8/20/10
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to google-visua...@googlegroups.com
You set properties on DataTable cells. Table Visualizations accept CSS style information as properties, so you need to set the "style" property of each cell you want to style. Use something like this: