I tried to do this once, but it wasn't straightforward, so I never finished it. You could try setting the formatted value of the cell to HTML that includes a color (and you need to set options.allowHtml = true). Also, there is a 'sort' event, so you could handle that event and change the coloring.
If you get this to work, I'd be interested in seeing how you did it... On Mon, Feb 7, 2011 at 11:46 AM, Kasu Praveen <[email protected]>wrote: > Hi, > > How can i add color to sorted column in table. > By default my table is sorted with second column, i want to add > background color to each cell in total second column. When user sorts > with another column, then this new sorted column should get the same. > > Thanks in advance. > > -- > 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. > > -- 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.
