Skip to content

Add support for textposition='middle left' to timelines and Bar objects #3482

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
rfeague opened this issue Nov 22, 2021 · 1 comment
Closed

Comments

@rfeague
Copy link

rfeague commented Nov 22, 2021

Currently the label text for bar graphs (which are in turn used by timelines) can only be positioned inside or outside the box. For timelines, which are traditionally horizontal, the text is right-justified in the box, which is sometimes not desirable. It is pretty darn complex to figure out a way to change that justification! My feature request is that there should be a simple way to left-align the text in a timeline or horizontal bar graph.

@rfeague
Copy link
Author

rfeague commented Nov 22, 2021

I truly spent hours researching this, only to find in the minutes after positing this that the text can be left-aligned by calling
fig.update_traces(insidetextanchor='start')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant