Random colors in Bar/Column Charts

1,438 views
Skip to first unread message

Innocuous

unread,
Jul 16, 2010, 1:11:35 PM7/16/10
to Google Visualization API
Hi,
Can we generate random colors for bar/column interactive charts? If
yes, then could someone point me as to how?
I cannot assign the colors manually since the data is random and total
number of bars/columns changes.

Thanks

Viz Kid

unread,
Jul 19, 2010, 4:03:27 AM7/19/10
to google-visua...@googlegroups.com

Hi.

I'm not sure what you are asking for.
The chart's default colors has colors for many series. If you have more than that, you can simply supply an array of more colors as you please.

If you want a generic way yo generate random colors, you can randomly selected RGB values and use them.

Hope this helps,
  Viz Kid



--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
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