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

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.

Reply via email to