almende / vis

⚠️ This project is not maintained anymore! Please go to https://github.com/visjs
7.85k stars 1.48k forks source link

Graph2D: TypeError when clicking on example `04_rightAxis` #3556

Open wimrijnders opened 6 years ago

wimrijnders commented 6 years ago

In example 04_rightAxis, clicking on the chart results in the following error:

DataAxis.js:449 Uncaught TypeError: Cannot read property 'screenToValue' of undefined
    at DataAxis.screenToValue (DataAxis.js:449)
    at Graph2d.getEventProperties (Graph2d.js:309)
    at Graph2d.<anonymous> (Graph2d.js:110)
    at Graph2d.Emitter.emit (index.js:134)
    at Array.listener (Core.js:155)
    at Array.propagatedHandler (propagating.js:221)
    at Object.emit (hammer.js:2519)
    at TapRecognizer.emit (hammer.js:2128)
    at TapRecognizer.tryEmit (hammer.js:1555)
    at TapRecognizer.recognize (hammer.js:1602)

I can't immediately see the reason for this, but it needs to be fixed.

dalzell99 commented 6 years ago

This seems to be a duplicate of #3458