Custom colors for each section of a bar?

20 views
Skip to first unread message

Forumer

unread,
Oct 7, 2015, 9:15:06 AM10/7/15
to Google Visualization API
On a Timeline chart, I understand that one can provide an array of colors which will be applied in sequence to sub-sections of a bar. Is there a way to customize color for each section? It would be like the color is one of the values in each row. I could live with colors based on label with some of multiple labels having same color.

Thanks

Forumer

unread,
Oct 7, 2015, 11:53:31 AM10/7/15
to Google Visualization API
I am getting the impression that one could use the optional p property to set a style for each individual cell. If true, I'd appreciate it if somebody could point me to an example (JSFiddle or something)

Sergey Grabkovsky

unread,
Oct 7, 2015, 1:30:57 PM10/7/15
to Google Visualization API
I responded to your other post on an existing thread, but here's a link to a jsfiddle exemplifying the use of a style role: https://jsfiddle.net/9k76g85t/

--
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 google-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/c0f5a917-986e-4931-9cd7-bc4e29506f03%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages