react-plotly.js icon indicating copy to clipboard operation
react-plotly.js copied to clipboard

Bar plot inside large scrollable div

Open FilomenoSanchez opened this issue 2 years ago • 0 comments

Hi,

I am trying to fit a large stacked bar plot inside a scrollable div. It needs to be scrollable as the number of bars might be very high (over 10k). I have managed to this using plotly and no react involved here: https://codepen.io/FilomenoSanchez/pen/ZEoPOPQ. This is really close to what we want in the final product.

However, the final app is written using react, and the problem starts when I try to do the same using plotly-react: the plot doesn't expand to fill up the entire scrollable div. This is what I've got instead: https://codepen.io/FilomenoSanchez/pen/VwxRogq

Apologies if this has been already asked elsewhere, I just couldn't find any related issues. Thanks!

FilomenoSanchez avatar Oct 16 '22 13:10 FilomenoSanchez