styling for charts

34 views
Skip to first unread message

Lokesh Setia

unread,
Dec 22, 2011, 3:49:29 AM12/22/11
to google-visua...@googlegroups.com
Hi,

I want to set custom styling for certain chart elements.  For example, enable a gradient for the filling of the bar charts, instead of a single fill color.  I see that bars are internally implemented as svg rects.  Any way I could change the attributes of these objects?

Regards,
Lokesh

ChartALot

unread,
Dec 22, 2011, 4:10:07 AM12/22/11
to google-visua...@googlegroups.com
Hi,
We don't provide an option to set gradient fill color.
If yo want to emphasize a specific bar, you may want to use the "emphasis" role instead. 

HTH.


--
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.

asgallant

unread,
Dec 22, 2011, 9:44:37 AM12/22/11
to google-visua...@googlegroups.com
There isn't any support for this in the API, but you may have some luck by manipulating the SVG directly, though it can be difficult to identify which SVG elements correspond to certain chart elements.
Reply all
Reply to author
Forward
0 new messages