Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plots of minutes #67

Open
fsktom opened this issue Aug 10, 2023 · 2 comments
Open

Plots of minutes #67

fsktom opened this issue Aug 10, 2023 · 2 comments
Assignees
Labels
cli Regarding `endsong_ui` crate enhancement New feature or request

Comments

@fsktom
Copy link
Owner

fsktom commented Aug 10, 2023

Absolute and relative traces of Durations instead of plays

@fsktom fsktom added enhancement New feature or request cli Regarding `endsong_ui` crate labels Aug 10, 2023
@fsktom fsktom self-assigned this Aug 10, 2023
@fsktom
Copy link
Owner Author

fsktom commented Aug 30, 2023

Issues: Even with chrono 0.4 feature serde - Duration isn't serializable
-> I have to use .num_minutes()/.num_hours()/... to plot i64 (only whole minutes/hours) -> rounding/blocky trace
I could use seconds or milliseconds, but what use would that plot have (you can't read/translate seconds)
would be nice if I got that automatic nice scaling (like I get with Dates in (ISO 8601)-ish and display on the plot with plotly :/

Maybe plotly js has got some duration-esque value I could format to that provides auto scaling/display (e.g. for lower values minutes, for higher hours, days etc.)

blocky plot with hours
blocky plot with hours

less blocky plot with minutes
less blocky plot with minutes

perfect with milliseconds, since it's the resolution Spotify gives (ms_played in Entry), but it's in hundreds of millions just for endsong_0.json for Sabaton.... so it's gonna be billions for all the files which is not useful at all

@fsktom
Copy link
Owner Author

fsktom commented Sep 3, 2023

Maybe I could plot minutes and streams plots in one plot (two y-Axes)
https://plotly.com/python/multiple-axes/

See #26

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli Regarding `endsong_ui` crate enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant