Skip to content

Boxplot with categorical xaxis shows the outliers wrongly #2706

@lucianolorenti

Description

@lucianolorenti

Hi! I have this issue when trying to use the boxplots and show the outliers at the same time. I tried following the library code to see when the problem is but I couldn't figure it out.
I tried changing the input of the data of the scatter to { x: the_label, y: Array<number> } and forcing the list of categories, but these things didn't solve it.

Description

A boxplot with outliers using a categorical label shows the outliers in different x positions. The first outlier shares the x-position with the boxplot, but the next ones have an increasing x-position.

Steps to Reproduce

  1. Create one boxplot with the x-variable being a categorical label
  2. Add outliers using in the x component the same categorical label

Expected Behavior

All outliers should be located in the same x coordinate

Actual Behavior

The x positions of the outliers increment as the thumber of outliers grows

Screenshots

Screenshot

Reproduction Link

Link to the example

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingverified

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions