plotly_express icon indicating copy to clipboard operation
plotly_express copied to clipboard

Add option for cumulative line traced for scatterplot animation

Open ebergam opened this issue 6 years ago • 4 comments

Great job on plotly_express, thanks!

One of the coolest features of Rosling's renowned Gapminder charts, was also to be able to trace the movement of the bubbles over time.

Not sure how easy it could be to implement it, but adding a true/false option for a line that is drawn after the markers move could be an extremely powerful feature.

ebergam avatar May 14 '19 15:05 ebergam

It's a neat feature for sure, but probably too niche to implement in a general-purpose system like Plotly Express, to be honest. I used the Gapminder dataset because it's an easily-accessible example, but I didn't intend for that to mean we would copy all of Gapminder's features per se :)

nicolaskruchten avatar May 14 '19 18:05 nicolaskruchten

Okay makes sense. Thanks for the reply and the great job! :)

ebergam avatar May 14 '19 20:05 ebergam

First of all, I wholeheartedly agree with @ebergam: plotly express is amazing and has accelerated huge swaths of my work. Thank you so much!

In case it's still up for discussion, I'd +1 this suggestion of maintaining the history of markers when animating a plotly express chart. I actually often find myself during data exploration of time series needing to see the history of a point over some time range in order to visually infer possible patterns.

In order to keep it from being too computationally expensive, perhaps it could be implemented with an animation_range parameter that dictates the size of the animation_frame column values that should be retained (e.g. number of milliseconds across a timestamp column).

All of this being said, for some reason I thought the animation_group parameter would achieve this goal, and yet I can't get it to work. So if that's how it's supposed to be done already and I'm just using it improperly, I'd love to know!

emigre459 avatar Nov 20 '19 22:11 emigre459

Any updates on this?

AhmedThahir avatar Jul 17 '22 13:07 AhmedThahir