Black Lives Matter. Please consider donating to Black Girls Code today.
Learn about the upcoming Dash Enterprise 4.0 release in the August 5th webinar with Chris Parmer, the Inventor of Dash.

Bug with px.timeline()


I think I’ve found a bug, or maybe I cannot figure out what is wrong:

I’ve plotted this px.timeline()


with the following code:

    fig = px.timeline(df_list_rev, x_start="Start", x_end="Finish", y="Ufficio",
                      color="Persona", labels={'Persona': 'Persona', 'Ufficio': 'Ufficio'},
                                            width=800, height=600)

The problem is that if a person choose two different “y” over time, their marks on the plot are bigger and not proportioned with all the other, as you can see (pink and green blocks: they are the same as other in dataset, but bigger in the plot). The problem disappears if the person is associated with more than three “y” over time.

What can I do to fix this?

Thank you in advance