positive color for NumberFormat

23 views
Skip to first unread message

NA

unread,
Aug 24, 2011, 4:13:34 PM8/24/11
to Google Visualization API
Is there a "positiveColor" or similar option for NumberFormat ? We
can color negative values using "negativeColor", but I'd like to also
color positive values.

If not, any tips for doing this simply, similarly to what we could do
with NumberFormat?

asgallant

unread,
Aug 25, 2011, 8:52:07 AM8/25/11
to google-visua...@googlegroups.com
Assuming you are referring to Table visualizations, you can assign a CSS class name to each cell in the column, and then style the text for that class a certain (positive) color.  Then you can use the NumberFormat to color the negatives differently.  Zeros end up being the same color as positive numbers, but you can check for them before assigning the class to the cell.
Reply all
Reply to author
Forward
0 new messages