New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Highcharts throws error on mobile touch-move event #5839

Closed
onemenny opened this Issue Oct 18, 2016 · 1 comment

Comments

Projects
None yet
2 participants
@onemenny

onemenny commented Oct 18, 2016

Happens on both Highcharts 4.2.4 & 5.0.0, tested with latest chrome on Android

When touch & move finger highcharts throws:
highcharts.src.js:10405 Uncaught TypeError: Cannot read property 'attr' of undefined

 each(chart.series, function (series) {
                seriesAttribs = attribs || series.getPlotBox(); // #1701
                if (series.xAxis && series.xAxis.zoomEnabled) {
                    series.group.attr(seriesAttribs); //**** this line throws error 
                    if (series.markerGroup) {
                        series.markerGroup.attr(seriesAttribs);
                        series.markerGroup.clip(clip ? chart.clipRect : null);
                    }
                    if (series.dataLabelsGroup) {
                        series.dataLabelsGroup.attr(seriesAttribs);
                    }
                }
            });

series has no group attribute...
Load on your Android mobile device: https://codepen.io/onemenny/full/JRmRgp
or see code here: https://codepen.io/onemenny/pen/JRmRgp

Please advice

@TorsteinHonsi

This comment has been minimized.

Show comment
Hide comment
@TorsteinHonsi

TorsteinHonsi Oct 20, 2016

Collaborator

Stripped down to relevant demo: http://jsfiddle.net/highcharts/8pg0t6ps/

The problem appears when a series is added after render time with visible: false.

Collaborator

TorsteinHonsi commented Oct 20, 2016

Stripped down to relevant demo: http://jsfiddle.net/highcharts/8pg0t6ps/

The problem appears when a series is added after render time with visible: false.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment