making table content bold

30 views
Skip to first unread message

M.W. Aruna Withanage

unread,
Mar 2, 2012, 8:25:40 AM3/2/12
to google-visua...@googlegroups.com
Hi all,

I have drawn a table using visualisation api
Now I need to make the fonts in the table bold. How can I do that?

Rgrds
Aruna

asgallant

unread,
Mar 2, 2012, 9:46:33 AM3/2/12
to google-visua...@googlegroups.com
You can either set the 'allowHtml' option to true and wrap the strings in your DataTable with '<b>' tags or you can use styles.  The table has built-in classes ('google-visualization-table-table', 'google-visualization-table-tr-head', 'google-visualization-table-td', etc - use a DOM explorer to get them all) or you can add your own via the 'className' property (which can be applied to a row, column, or individual cell).  You can also style directly by applying the 'style' property.

M.W. Aruna Withanage

unread,
Mar 3, 2012, 12:39:59 PM3/3/12
to google-visua...@googlegroups.com
Hi,

Thank for your reply
Its working now.

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

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