Skip to content

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

Closed

Description

@rfeague

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.

Activity

  1. rfeague commented on Nov 22, 2021

    @rfeague
    Author

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions