epezent / epezent/implot

Timeline plot (similar to horizontal bar plot with several bars on the same line)

Open
#464 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
6.2k
Forks
693
PR merge metrics
No merged PRs in 30d

Description

Before to start to do it from scratch, I would like to know if ImPlot already provides something like a timeline.

Let us say we have a list of events A, B, C... which have a start timestamp and a stop timestamp. Several of the same events can exist with different timestamps in the list.
E.g.:
A: 1, 3
B: 1, 5
C: 2, 7
B: 6, 9
A: 12, 20
...

On Y will be one line per event (A, B, C...). X will be the time axis.
I expect something like:

```
(Events)
| CCCCCCCCCCC CCCC CCCC
| BBBBBBBBBB BBBB BBB BBBBBBBBB
| AAAAAAAAAAAAAA AAA AAAAA
_____________________________________________________________ (time)
```

Is there something already available to do this? If not, could you tell me which direction you recommend to do it (tweaking ImPlot::PlotBars or ImPlot::Digital)?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.