I’m using datetime objects as x-axis values, no problem there.
I can even add a vline with a datetime object as x value, no problem either.
But when I add an annotation_text attribute, I get the following error:
fig.add_vline(x=Startzeit, line_width=1, line_dash=“dash”, line_color=“black”, annotation_text = “test”)
TypeError: unsupported operand type(s) for +: ‘int’ and ‘datetime.datetime’
Is this a bug or just not supported, or am I doing something wrong?
Thanks
Hi taubenschach, I recently ran into the same issue. This seems to be a bug that is not fixed yet. A possible workaround is suggested here
1 Like