Skip to content
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
Closed

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

onemenny opened this issue Oct 18, 2016 · 1 comment

Comments

@onemenny
Copy link

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
Copy link
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.

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

No branches or pull requests

2 participants