Px.timeline: short events in large scale timeline

Hello,

I have created a timeline using px.timeline, where i display events (with a start time and end time that define the bars).
The timeline is quite long - several months - and my events can be several hours/ days … or seconds.

events that last for some seconds are invisible, i need to zoom to see it … and therefore i need to know something is here to zoom at that place… which makes it quite inconvenient.

I haven’t found any option to have short event to be displayed (even one pixel large would be ok). Is there any solution to tune the display here?

Thanks :slight_smile:

Bumping this thread. I have the same issue. Here’s some example code:

import pandas as pd
import plotly.express as px

df = pd.DataFrame([
    dict(Task="Job A", Start='2009-01-01T00:12:01Z', Finish='2009-01-01T00:12:03Z'),
    dict(Task="Job B", Start='2009-01-01T00:10:01Z', Finish='2009-01-01T10:01:01Z'),
    dict(Task="Job C", Start='2009-01-01T01:00:01Z', Finish='2009-01-01T01:00:31Z')
])

fig = px.timeline(df, x_start="Start", x_end="Finish", y="Task")
fig.show()

Notice how job a is basically invisible. Is there a way to set a minimum display width for near instantaneous events?