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

Horizontal timeline component #8016

Closed
benakansara opened this issue Sep 11, 2024 · 2 comments
Closed

Horizontal timeline component #8016

benakansara opened this issue Sep 11, 2024 · 2 comments

Comments

@benakansara
Copy link

As part of RCA initiative, we are building an investigation page where we would show timeline of events that happened before and during the incident. We are going to show timeline in two formats: horizontal and vertical. For vertical timeline, we are planning to use EUI timeline component. We need a similar component in horizontal format where we can plot different type of events on a line with each event having its tooltip and ability to assign actions on click (for example, if the event is of type "alert", user should be able to go to alert details page by clicking on it). The investigation will have different visualizations on the page without visible x-axis, we would like to use x-axis of horizontal events timeline as a common x-axis for all the visualizations so that when hovering mouse on either events timeline or any of the visualizations, the mouse pointer would move in all visualizations with tooltip open.

Here is our design from the mockups:

Image

Describe alternatives you've considered

We are considering -

  • grid charts (e.g. heat map) with single row where we can place icons for different event types
  • a chart with all 0 in y-axis and annotation layer for each of the events

But these are temporary solutions. Ideally, a dedicated timeline component would fit better for our use case.

@MichaelMarcialis
Copy link
Contributor

Per the discussion in the separate Slack thread, it seems a happy solution was found by using the Elastic charts library (thanks to @nickofthyme). As Elastic charts is separate from EUI, I'll go ahead and close out this issue for the time being.

That said, if the Elastic charts solution falls through for whatever reason, our recommendation would be to create your own custom component to achieve this (as there is no current EUI component that meets all of these requirements). However, if it can be established that there exists a larger audience that desires to have a horizontal timeline component such as this at the design system level, we can reopen this issue.

@MichaelMarcialis MichaelMarcialis closed this as not planned Won't fix, can't repro, duplicate, stale Sep 18, 2024
@nickofthyme
Copy link
Contributor

Thanks @MichaelMarcialis here is the demo of the charts implementation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants