column chart cross x-axis issue

17 views
Skip to first unread message

Jin Xie

unread,
Oct 26, 2015, 7:37:24 AM10/26/15
to Google Visualization API
Hi, I'm experiencing problem with column chart cross x-axis line, as shown in the attached image
it is always like this for some certain dataset. I've compared these different dataset, and found no obvious problem with them.

Any one know what may has cause this problem


Screen Shot 2015-10-26 at 11.33.39.png

Daniel LaLiberte

unread,
Oct 26, 2015, 8:10:57 AM10/26/15
to Google Visualization API
This appears to be due to two issues: the 0 value on the vertical axis is not shown, and the chart area is not being clipped properly.  You can force the 0 value to be included by adding a baseline option: vAxis: { baseline: 0 }, or by adding vAxis: { viewWindow: { min: 0 } }.  This is probably what you should do since you are using a column chart.  The main reason we don't do that by default is backward compatibility.  

The clipping problem has been fixed in a recent version.  Try using the frozen v43: https://google-developers.appspot.com/chart/interactive/docs/library_loading_enhancements#frozen-versions



--
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/eed7da28-cdec-454f-85bd-d8a3d16b832f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
dlaliberte@Google.com   5CC, Cambridge MA
daniel.laliberte@GMail.com 9 Juniper Ridge Road, Acton MA

Jin Xie

unread,
Oct 26, 2015, 8:38:12 AM10/26/15
to Google Visualization API
thank you Daniel, `baseline: 0` fixes my problem :)

On Monday, 26 October 2015 12:10:57 UTC, Daniel LaLiberte wrote:
This appears to be due to two issues: the 0 value on the vertical axis is not shown, and the chart area is not being clipped properly.  You can force the 0 value to be included by adding a baseline option: vAxis: { baseline: 0 }, or by adding vAxis: { viewWindow: { min: 0 } }.  This is probably what you should do since you are using a column chart.  The main reason we don't do that by default is backward compatibility.  

The clipping problem has been fixed in a recent version.  Try using the frozen v43: https://google-developers.appspot.com/chart/interactive/docs/library_loading_enhancements#frozen-versions


On Mon, Oct 26, 2015 at 7:37 AM, Jin Xie <jinfeng...@gmail.com> wrote:
Hi, I'm experiencing problem with column chart cross x-axis line, as shown in the attached image
it is always like this for some certain dataset. I've compared these different dataset, and found no obvious problem with them.

Any one know what may has cause this problem


--
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-visualization-api+unsub...@googlegroups.com.



--
dlali...@Google.com   5CC, Cambridge MA
daniel.l...@GMail.com 9 Juniper Ridge Road, Acton MA
Reply all
Reply to author
Forward
0 new messages