Black Lives Matter. Please consider donating to Black Girls Code today.
Learn how to use COVID-19 data in open source Dash apps. Register for the Sept 23rd webinar with IQT!

Line Plot - Error on Pan

I am using the latest version of plotly.js v1.30.1.

I am getting a javascript error when I try to pan on some data:
Cannot read property ‘getAttribute’ of null

When I do grab the chart and try to move around, it just moves the points, but the axis stays where it is.

Here is a demo of what I am seeing
https://jsfiddle.net/JimmyDev/br7qfqp4/

Thanks for any ideas on how to correct this.

That’ll be fixed in the next release:

https://github.com/plotly/plotly.js/pull/2055/commits/6a44a9ae079b4306779092d73526c08d98a539e1

Or just change mode: 'lines+markers+text' for mode: 'lines+markers' in all your traces.

Thanks for the reply! I am going to need the text when I add in all that I want.

I’ll keep an eye on the github issue.

Sure, but the bug only affected traces with empty text items.

1 Like