Expected behaviour
There isn't any error logged in the console.
Actual behaviour
Uncaught TypeError: Cannot read properties of undefined (reading 'findNearestPointBy') is logged into browser console.
Live demo with steps to reproduce
https://jsfiddle.net/BlackLabel/3rfjnu7g/
Click on the "Add new line series" button. In most cases, it shouldn't throw an error, but if you click on the button before the KD-Tree is built, the error appears.
Product version
Tested up to Highcharts v.8
Expected behaviour
There isn't any error logged in the console.
Actual behaviour
Uncaught TypeError: Cannot read properties of undefined (reading 'findNearestPointBy')is logged into browser console.Live demo with steps to reproduce
https://jsfiddle.net/BlackLabel/3rfjnu7g/
Click on the "Add new line series" button. In most cases, it shouldn't throw an error, but if you click on the button before the KD-Tree is built, the error appears.
Product version
Tested up to Highcharts v.8