scatterplot x-axis grouping

20 views
Skip to first unread message

Greg Fiske

unread,
Oct 28, 2013, 9:45:58 AM10/28/13
to google-visua...@googlegroups.com
Hi - I've created a scatter plot from a Google Docs spreadsheet.  The points on the x-axis appear to be rounded in the graph... although the values in the spreadsheet actually have info to one decimal place.  Can anyone suggest a fix? 

Here's a link, it's the last graph on the page:  

thanks,

Greg

asgallant

unread,
Oct 28, 2013, 10:07:58 AM10/28/13
to google-visua...@googlegroups.com
The points are not rounded in the chart.  You can see the point at {37, 600.8} is clearly positioned differently in the x-axis from the line of points at 37.4.

asgallant

unread,
Oct 28, 2013, 10:09:09 AM10/28/13
to google-visua...@googlegroups.com
It is easier to see if you remove the "focusTarget":"series" and "tooltip":{"trigger":"none"} options.

asgallant

unread,
Oct 28, 2013, 10:10:13 AM10/28/13
to google-visua...@googlegroups.com
jsfiddle with the options commented out: http://jsfiddle.net/asgallant/chA5X/

Greg Fiske

unread,
Oct 28, 2013, 12:23:30 PM10/28/13
to google-visua...@googlegroups.com
Thanks very much.  I verified with a quick R plot that my data is in fact (mostly) binned on the x-axis.  Probably something I should have done before posting here.  The scatter plot is correct.

Thanks also for pointing out what "focusTarget" and "tooltip" do.  I had wanted the values to appear when you mouse over the points.

Greg 


--
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/FKq5QDxfuXs/unsubscribe.
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.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages