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!

Error: <rect> attribute width: A negative value is not valid

Hi,

On responsive plots, when the width is narrowed too much, an error is triggered with the message:

Error: <rect> attribute width: A negative value is not valid.

You can test it on your responsive example:

https://codepen.io/plotly/pen/wKpPvj

Just to let you know.

Thanks for the report.

Looks like it doesn’t affect functionality though. You could try to something like:

to remove those error messages, until we release a patch in plotly.js

You’re right, it doesn’t affect functionality

Thanks for the tip.

Now, the example you provide works as long as the window is not narrowed too fast, otherwise the error is triggered.

Just for you to consider when patching plotly.js

1 Like