Skip to content

[Feature Request] Show errors as absolute values #4067

@Batalex

Description

@Batalex

Hi,

Errors in Plotly are shown upon hover as relative values. For example, in the following graph

data = {
    "type": "scatter",
    "y": [10, 11],
    "error_y": {
        "type": "data",
        "array": [1, 2],
        "arrayminus": [1, 2]
    }
}

the first data point is displayed as 10 +1 /-1.

It would be interesting for some cases to display the absolute values as an interval 10 (9, 11). For example when plotting odds ratios it is preferable to read the confidence interval in a straightforward way rather than showing the spread. Even with hovertemplate I could not figure out how to properly set this behavior.

I think it could implemented with a new "display" key in error_x|error_y with the values "relative" (default) or "absolute"

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions