Skip to content

PX scatter, bar behaviour when only one of x or y is specified #2332

Closed
@nicolaskruchten

Description

@nicolaskruchten

Plotly.js defaults to assuming x or y are increasing integers if unspecified, but this is a bad fit for PX... consider the following case where coloring the markers results in their shifting position (note the x axis range!)

image

This case is even scarier, with individual bars have different heights based on position in the data frame:

image

For bar, line, scatter and area we should probably disallow specifying one but not both of x and y. Possibly in the 3d cases also? Anywhere else? Bar-like traces?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions