Potential Bug: pointSize property of scatter chart lost on zoom

56 views
Skip to first unread message

Matthew Depew

unread,
Aug 29, 2017, 2:44:18 PM8/29/17
to Google Visualization API
I think I've found a bug in the zoom feature of the scatter chart.  I've got the following options set:

var options = {
                       height:300,
                       pointSize:1,
                        hAxis:{minValue:new Date(start_dt),maxValue:new Date(end_dt)},
                    explorer:{axis:'horizontal',maxZoomIn:1000,actions:['dragToZoom','rightClickToReset']}};
var chart = new google.visualization.ScatterChart(document.getElementById('chart_div'+index));
chart.draw(data, options);

Whenever I zoom in on the chart, it resets the pointSize to the default (~10 I think). I think the expected behavior should be to maintain pointsize on the re-draw.

Is this a bug, or am I doing something wrong?

Thanks!

Daniel LaLiberte

unread,
Aug 29, 2017, 2:51:10 PM8/29/17
to Google Visualization API
Hi Matthew,

This sounds like a variation on the problem where redrawing the chart disables the explorer mode entirely.  But perhaps this is different since you are getting a different point size than expected.  

I just released v46 (as 'upcoming') which includes a fix of the explorer mode.  Please try it out with your example and let me know.

--
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.
To post to this group, send email to google-visualization-api@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/00e26c0a-e17d-4f15-9118-7e36b36442e0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Message has been deleted

Matthew Depew

unread,
Aug 29, 2017, 2:57:08 PM8/29/17
to Google Visualization API

I changed my load line from
google.charts.load('current', {'packages':['corechart']});
to
google.charts.load('upcoming', {'packages':['corechart']});
and I'm still seeing the issue. Is that change all that is needed to switch to the upcoming version?

On Tuesday, August 29, 2017 at 1:51:10 PM UTC-5, Daniel LaLiberte wrote:
Hi Matthew,

This sounds like a variation on the problem where redrawing the chart disables the explorer mode entirely.  But perhaps this is different since you are getting a different point size than expected.  

I just released v46 (as 'upcoming') which includes a fix of the explorer mode.  Please try it out with your example and let me know.
On Tue, Aug 29, 2017 at 2:44 PM, Matthew Depew <mdd0...@gmail.com> wrote:
I think I've found a bug in the zoom feature of the scatter chart.  I've got the following options set:

var options = {
                       height:300,
                       pointSize:1,
                        hAxis:{minValue:new Date(start_dt),maxValue:new Date(end_dt)},
                    explorer:{axis:'horizontal',maxZoomIn:1000,actions:['dragToZoom','rightClickToReset']}};
var chart = new google.visualization.ScatterChart(document.getElementById('chart_div'+index));
chart.draw(data, options);

Whenever I zoom in on the chart, it resets the pointSize to the default (~10 I think). I think the expected behavior should be to maintain pointsize on the re-draw.

Is this a bug, or am I doing something wrong?

Thanks!

--
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.
To post to this group, send email to google-visua...@googlegroups.com.



--

Daniel LaLiberte

unread,
Aug 29, 2017, 3:16:26 PM8/29/17
to Google Visualization API
That is the only change you should need to load the upcoming version.  

Could you try an earlier version as well, say '45' or '44'?  The breakage I am thinking of only occurred for the current release, so if the problem you are seeing existed previously, then that would be a different problem.


On Tue, Aug 29, 2017 at 2:57 PM, Matthew Depew <mdd0...@gmail.com> wrote:

I changed my load line from
google.charts.load('current', {'packages':['corechart']});
to
google.charts.load('upcoming', {'packages':['corechart']});
and I'm still seeing the issue. Is that change all that is needed to switch to the upcoming version?

On Tuesday, August 29, 2017 at 1:51:10 PM UTC-5, Daniel LaLiberte wrote:
Hi Matthew,

This sounds like a variation on the problem where redrawing the chart disables the explorer mode entirely.  But perhaps this is different since you are getting a different point size than expected.  

I just released v46 (as 'upcoming') which includes a fix of the explorer mode.  Please try it out with your example and let me know.
On Tue, Aug 29, 2017 at 2:44 PM, Matthew Depew <mdd0...@gmail.com> wrote:
I think I've found a bug in the zoom feature of the scatter chart.  I've got the following options set:

var options = {
                       height:300,
                       pointSize:1,
                        hAxis:{minValue:new Date(start_dt),maxValue:new Date(end_dt)},
                    explorer:{axis:'horizontal',maxZoomIn:1000,actions:['dragToZoom','rightClickToReset']}};
var chart = new google.visualization.ScatterChart(document.getElementById('chart_div'+index));
chart.draw(data, options);

Whenever I zoom in on the chart, it resets the pointSize to the default (~10 I think). I think the expected behavior should be to maintain pointsize on the re-draw.

Is this a bug, or am I doing something wrong?

Thanks!

--
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+unsubscr...@googlegroups.com.



--

--
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.
To post to this group, send email to google-visualization-api@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--

Matthew Depew

unread,
Aug 29, 2017, 3:23:04 PM8/29/17
to Google Visualization API
Yep, looks like older versions do not have the bug. 43,44,45 and 45.1 all work fine. The problem appears to start at 45.2. Guess I'll stick with 45.1 until this issue is resolved. Let me know if I can provide any more details to help the debug process.

Also, thanks for the incredibly prompt replies!
To unsubscribe from this group and stop receiving emails from it, send an email to google-visualization-api+unsub...@googlegroups.com.



--

--
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.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.



--

Daniel LaLiberte

unread,
Aug 29, 2017, 3:50:47 PM8/29/17
to Google Visualization API
OK thanks.  Now that I take the time to reproduce the problem you are seeing, I see it readily.  The same problem applies to lineWidth, 'orientation', and some trendline options.   I can see the cause of the problem, but I am not sure yet how I will fix it.

To unsubscribe from this group and stop receiving emails from it, send an email to google-visualization-api+unsubscr...@googlegroups.com.



--

--
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+unsubscr...@googlegroups.com.

To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.



--

--
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.
To post to this group, send email to google-visualization-api@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--

Daniel LaLiberte

unread,
Sep 20, 2017, 12:21:58 PM9/20/17
to Google Visualization API
These problems are now fixed by v46, by the way.

--
Reply all
Reply to author
Forward
0 new messages