Google scatter chart

86 views
Skip to first unread message

er...@readingplus.com

unread,
May 8, 2013, 9:57:38 AM5/8/13
to google-visua...@googlegroups.com
Is there a way to color the background of the quadrants on the scatter chart?
I want to have each quadrant color coded.

Thanks.


asgallant

unread,
May 8, 2013, 10:28:03 AM5/8/13
to google-visua...@googlegroups.com
There is nothing in the chart itself that will do this.  There are two options which may work for you, but they both have limitations:

1) add an image or a series of colored divs to your page and layer them under the chart with CSS, then set the chart's backgroundColor option to "transparent".  This will get you what you want, but it doesn't work for older versions of IE (8 and older).
2) if your data structure is amenable, you may be able to use a ComboChart instead of a ScatterChart.  You could create "area" data series to color the 4 quadrants and use "line" series for your data points, with the lineWidth set to 0 and the pointSize set to something greater than 0.  This will work in all browsers, but only if your data is amenable.

Eric Waite

unread,
May 8, 2013, 11:08:49 AM5/8/13
to google-visua...@googlegroups.com
Thank you


--
You received this message because you are subscribed to a topic in the Google Groups "Google Visualization API" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-visualization-api/eIg5QISNLYU/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, 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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages