I included some Text and Annotations for my Timeline plots (Gantt Charts | Python | Plotly). So far so good. However I want to position them all on the right hand side outside of the bars. When I use the ‘textposition’ argument I get the following error:
TypeError: timeline() got an unexpected keyword argument 'textposition'
import plotly.express as px import pandas as pd df = pd.DataFrame([ dict(Task="Job A", Start='2009-01-01', Finish='2009-02-28'), dict(Task="Job B", Start='2009-03-05', Finish='2009-04-15'), dict(Task="Job C", Start='2009-02-20', Finish='2009-05-30') ]) fig = px.timeline(df, x_start="Start", x_end="Finish", y="Task", text='Task') # textposition argument not possible fig.show()
Has anyone a solution?