✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
⚾️ It's finally Baseball season! Root for the home team... & Register for our Sports Analytics Webinar!

How to control how far away Plotly starts clipping graph?

I noticed in the heatmap examples found here: https://plot.ly/javascript/heatmaps/

if you zoom in and you switch the drag mode to ‘pan’; when you drag the graph to the left, the data that should be there on the right side of the data block is no longer rendered until you release the click.

Is there a way where we can control the threshold of this clipping?

I’m asking because I’m working on animating heatmaps, and I would like the range of data rendered before I animate to it. (Currently, it’ll slide to the new range, but the data in that range only shows after the animation completes, similar to releasing of the click in the example above).

Thanks in advance!

Not at the moment, unfortunately. It would be a nice feature though.

1 Like

I see, yes I think it would be really nice!

I think I’ll just have to create a quick loader for my case, would really love the animation though.

EDIT:
I was asking about whether a certain block of code is relevant to this, after testing, it didn’t seem like it was.

here:

1 Like

Life saver! Thank you!

For those of you reading later, change the ‘0.5’ on line 108 to a bigger value (I changed to 1.5 and it works great!)