Skip to content

Vertical Alignment for Annotations [Feature Request] #1545

Closed
@stoberblog

Description

@stoberblog

I'm trying to add two annotations to a plot, one in top center, the other bottom center. The problem is, I'd like these to stay visible when I zoom in, so using a static y co-ordinate won't work.

I'm using a scatter plot, and the data I'm plotting is power factor in degrees, where a positive value indicates a capacitive load, and a negative angle represents an inductive load.
plotly-powerfactor

So I propose a feature request to add a parameter called valign (similar to align for the horizontal axis), which allows the text to stay in the same relative vertical location, regardless of scaling or zoom. I'd suggest values of: 'top', 'center', 'bottom', 'positive', 'negative'. The positive and negative can be used to have a label on a certain side of the y=0 line or similar.

Thanks

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