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

Change the visualisation of the time based on timespan #367

Open
MonPote opened this issue Sep 13, 2021 · 3 comments
Open

Change the visualisation of the time based on timespan #367

MonPote opened this issue Sep 13, 2021 · 3 comments
Labels
enhancement New feature or request

Comments

@MonPote
Copy link
Contributor

MonPote commented Sep 13, 2021

Component: LineTemporalChart

Why this is needed:
Currently, the chart will display the time axis with the date and a hour

This make sense when you are in a less than 24h use case. However when you are in a past 7 days use case you don't really need it because it's usually not really readable anyway. If you really need the exact time, the user will hover the chart and see the exact time like in the screenshot.

What should be done:

We might want to change the time axis and display only the date when we are in a past 7 days usecase.
We also might want to think a bit more what to display in other use cases.

@MonPote MonPote added the enhancement New feature or request label Sep 13, 2021
@MonPote
Copy link
Contributor Author

MonPote commented Sep 13, 2021

WDYT @Cuervino

@Cuervino
Copy link
Contributor

My proposal:

  • for the last 24 hours, having either 4 ticks of precision, either 6 ticks.
    The first and the last time ticks are Date + Time, where it's only Time for the other ticks, except the first one after midnight.

  • for the last hour, having 6 ticks, only the last tick with the Date + Time (only Time for the others).

As an example:
image

Does that look ok for you?

@Cuervino
Copy link
Contributor

Edit: no "mixed" legend.
image

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

No branches or pull requests

2 participants