plotly / plotly.js

Open-source JavaScript charting library behind Plotly and Dash
https://plotly.com/javascript/
MIT License
16.72k stars 1.83k forks source link

[BUG] #4961

Open kozoria opened 4 years ago

kozoria commented 4 years ago

When creating a table figure that does not have enough rows to be scrollable it appears you simply make the scrollbar invisible without deactivating it. Because of the short amount of rows in these types of tables, the increment on the invisible scrollbar is large enough that scrolling will remove all of the rows out of view making it seem like they disappeared. From the user end I'd like this fixed as I would not want my users complaining that their tables disappear whenever they click on the right-side of the table where the invisible scrollbar would be.

To replicate the issue simply go to your own tables in Plotly page. https://plotly.com/python/table/

Click to the right of any table on that page around where you'd expect a scrollbar to be and you'll see the issue for yourself.

If it's difficult to track whether or not a data table needs scrolling and disable scrolling automatically, I think simply adding an extra field to the configuration for disabling scrolling would be useful.

alexcjohnson commented 4 years ago

Thanks @kozoria - this is an issue with a plotly.js table (rendered in SVG), and I can confirm the bug, so I transferred it to the plotly.js repo. Note that Dash has its own (HTML) table https://dash.plotly.com/datatable which has a lot more functionality specifically useful to displaying and editing data in Dash.