Console errors when zoomed in and using series.setData with redraw set to false #8795
Comments
Hi @matdion, The problem also appears without boost module. The different time in |
There's been a revert that accidentally (so it seems) canceled this fix. The problem is still visible in version 7.1.2, so I will reopen the issue. As a workaround you could try using the same solution applied to current code, but please note that this solution was not fully tested yet. Demo: https://jsfiddle.net/BlackLabel/wj4et7c9/1/ |
Any update on getting this fix incorporated in a release? |
Hi @sacrarat, |
Thanks for the quick response @sebastianbochan . For the time being I've used the suggested workaround and it seems to work. |
Expected behaviour
Zooming in on a live updated chart should not trigger console errors on chart hover.
I need to throttle redraws on a chart to prevent it being redrawn on ever serie's setData.
Is this use case supposed to work or there another way to achieve throttling
Actual behaviour
When using a deferred chart.redraw instead of a direct redraw on serie.setData hovering the chart when zoomed in will trigger hundreds of console errors.
FF 61.0.2 Error:
11:35:06.165 TypeError: h.series is null[Learn More] 18 highcharts.js:186:59 findNearestKDPoint/< https://code.highcharts.com/6.0.0/highcharts.js:186:59 forEach self-hosted:268:13 a.each https://code.highcharts.com/6.0.0/highcharts.js:28:236 findNearestKDPoint https://code.highcharts.com/6.0.0/highcharts.js:185:381 getHoverData https://code.highcharts.com/6.0.0/highcharts.js:187:240 runPointActions https://code.highcharts.com/6.0.0/highcharts.js:188:272 onContainerMouseMove https://code.highcharts.com/6.0.0/highcharts.js:197:204 setDOMEvents/c.onmousemove https://code.highcharts.com/6.0.0/highcharts.js:199:123
Chrome 68.0.3440.106 Error (IE11 has the same):
highcharts.js:186 Uncaught TypeError: Cannot read property 'group' of null at highcharts.js:186 at Array.forEach (<anonymous>) at a.each (highcharts.js:28) at a.Pointer.findNearestKDPoint (highcharts.js:185) at a.Pointer.getHoverData (highcharts.js:187) at a.Pointer.runPointActions (highcharts.js:188) at a.Pointer.onContainerMouseMove (highcharts.js:197) at HTMLDivElement.c.onmousemove (highcharts.js:199) (anonymous) @ highcharts.js:186 a.each @ highcharts.js:28 findNearestKDPoint @ highcharts.js:185 getHoverData @ highcharts.js:187 runPointActions @ highcharts.js:188 onContainerMouseMove @ highcharts.js:197 c.onmousemove @ highcharts.js:199
Live demo with steps to reproduce
Deferred redraw causes console error https://jsfiddle.net/ma_di/Laxsvgbw
Direct redraw has no error but kills the cpu usage https://jsfiddle.net/ma_di/81mhcp07/
Product version
Highcharts 6.X.X
Highcharts 6.1.X will also cause #8355
Affected browser(s)
Chrome
Firefox
IE11
The text was updated successfully, but these errors were encountered: