Hi, you can use the ColorFormat class to do this. You may find the documentation for that here<https://developers.google.com/chart/interactive/docs/reference#colorformatter> .
- Sergey On Tue, Mar 4, 2014 at 11:29 PM, Nit Rusty <[email protected]>wrote: > Hi All, > > In a table chart, how can I change the color of either the text or the > background of that particular cell based on the values in a cell for a > column. > > For ex: > > Col1 Col2 > A 9% > B 12% > C 16% > > For Col2 - I would like to show anything less than 10% as Red, between 10% > and 15% as Yellow, and anything over 15% as Green. > > It could either be the text in Col2 or the background color for each cell > in col2. > > > Any help would be greatly appreciated. > > Thanks > Nit > > -- > You received this message because you are subscribed to the Google Groups > "Google Visualization API" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to > [email protected]. > Visit this group at > http://groups.google.com/group/google-visualization-api. > For more options, visit https://groups.google.com/groups/opt_out. > -- You received this message because you are subscribed to the Google Groups "Google Visualization API" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/google-visualization-api. For more options, visit https://groups.google.com/groups/opt_out.
