DataTable interval role color

172 views
Skip to first unread message

Anuroop

unread,
May 28, 2012, 4:04:58 AM5/28/12
to google-visua...@googlegroups.com

Hi,

I am using Google Charts DataTable Roles https://developers.google.com/chart/interactive/docs/rolesexperimental feature to draw intervals and annotations in graphs as specified in the above link.

But I want to explicitly specify color of the interval. For example, in the below charts the color of the interval is blue:-

Google Charts Interval DataTable role

How can I change the color of the intervals to say yellow? I have observed that by default, it takes the color of the curve, for example, the color of the line is blue and hence the color of the interval is blue.

I tried the following approach but failed:-

addColumn({type:'number', role:'interval', color: 'yellow'});

Any help would be very appreciated.

far m

unread,
May 28, 2012, 1:31:50 PM5/28/12
to google-visua...@googlegroups.com
I have the same question. I have tried many different formats but nothing worked. 

Jinji

unread,
May 30, 2012, 8:31:00 AM5/30/12
to google-visua...@googlegroups.com
I'm afraid that's not supported at the moment. You can hack something by drawing 2 lines rather than 1, both with the exact same data, the first line won't have intervals, and the second line will be of some other color (the series option), lineWidth zero, and will have intervals.

--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-visualization-api/-/Iei9719g9-wJ.

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