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

State Timeline: Show Duration in chart #36815

Open
linjmeyer opened this issue Jul 15, 2021 · 4 comments
Open

State Timeline: Show Duration in chart #36815

linjmeyer opened this issue Jul 15, 2021 · 4 comments

Comments

@linjmeyer
Copy link

What would you like to be added:

I would like an option to show the duration in the bar of the State Timeline chart. Currently this is visible when you hover:

image

It would be helpful to optionally add the duration so the bar was either "1 day" or both the value and duration "2 (1 day)".

Why is this needed:

In some cases when using the State Timeline, I am less worried about the value of the metric instead the duration that metric existed. Having that information ready without hovering will make the chart easier to read.

Thank you!

@leeoniya
Copy link
Contributor

but "2 (1 day)" might make the value too long to render in your example without overlap, so may eliminate the label entirely.

maybe we can have an option to render just the duration since the value meaning may already be in the legend for discrete states.

@linjmeyer
Copy link
Author

I'm good with either personally. I'm playing with the State Timeline and I've found it to be very useful, but I have found a lot of situations where the duration of some metric is a few seconds or minutes and even a simple value like "1" is too large, I think it's unavoidable depending on the data and how far out you need to zoom.

but yes in my use case, my labels to the left of the bars already have the contextual info I need (ie: name of a pod in kubernetes) so the "1" is of no use. Thanks for the quick reply.

@dprokop
Copy link
Member

dprokop commented Jul 16, 2021

maybe we can have an option to render just the duration since the value meaning may already be in the legend for discrete states.

+1

Copy link
Contributor

This issue has been automatically marked as stale because it has not had activity in the last year. It will be closed in 30 days if no further activity occurs. Please feel free to leave a comment if you believe the issue is still relevant. Thank you for your contributions!

@github-actions github-actions bot added the stale Issue with no recent activity label Jan 28, 2024
@leeoniya leeoniya removed the stale Issue with no recent activity label Jan 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Development

No branches or pull requests

5 participants