Skip to content

Histogram does not correctly display trace with single X value (when another trace has more than one X value) #6661

Closed
@sgalla

Description

@sgalla

From what I can tell, this specifically happens when the histogram has more than one trace where one trace has more than one X value and the other trace has one X value.

Here is a codepen that demonstrates the bug: https://codepen.io/Shannon-Gallagher-the-bold/pen/XWyRVar

It appears that "Results B", the dataset with a single result, renders as a line at the exact X value, rather than the bar overlay that is the full width of the bin. Adding an X value to trace2 ("Results B") results in expected behavior (uncomment line 25 in the codepen and comment line 24).

Below are photos for reference. The first shows the broken behavior when the trace has a single X value. The second shows expected behavior that is seen when a second X value is added to the trace data.

(Note: I do see this working as expected up until version 1.41.3.)

Screen Shot 2023-06-30 at 11 49 39 AM Screen Shot 2023-06-30 at 11 49 50 AM

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