Open mccarthysean opened 3 years ago
The problem is described in the Plotly-Dash animations documentation here:
Animations are designed to work well when each row of input is present across all animation frames, and when categorical values mapped to symbol, color and facet are constant across frames. Animations may be misleading or inconsistent if these constraints are not met.
My example has daily frames, but each day does not have the same number of hours of data. To fix the problem, I need to make each day have the same number of hourly "charts" (e.g. 24 charts of data each day).
pip list | grep dash:
I've got a Dash graph "animation" (multiple frames, which show different days) whose lines don't show up when the frame changes. I've been using Dash for a few years now and I've never run into this problem before, but I have a reproducible example below.
Here's what all of the frames are supposed to look like (note the red lines on top and purple lines on the bottom):
That was the first frame, above. The second frame from the right looks like this, with no red lines above the purple lines. I can assure you there's data there; it's just not showing up! Check for yourself with the output from print(tabulate()).
To get set up to answer this question, install the following libraries:
Here's the full code, ready for you to copy and paste, and see the bug: