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

Thanks for any ideas on how to correct this.

That’ll be fixed in the next release:

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