SjoerdTilmans / sjvisualizer

Library to make animated data visualizations from time series data
https://www.sjdataviz.com/software
MIT License
198 stars 30 forks source link

[Feature] Timeline #27

Open coolacid opened 3 months ago

coolacid commented 3 months ago

I'd love to see a graphic that is a timeline for the animation.

Pick the First and Last datetime from the data frame, create a timeline with tick marks at reasonable intervals.

As the animation moves forward, an arrow is displayed over (or under) the timeline to show where in the timeline the animation is currently.

SjoerdTilmans commented 3 months ago

Thank you for opening this. This is a great improvement, and shouldn't be too difficult to implement. You can even let the timeline depend on the supplied dataframe.

The library includes a separate class to create axis. This can be used to create this, the axis also includes a function to calculate the coordinates needed when giving a specific value.