Skip to content

Single bar datum does not display with barmode='overlay' #2191

@radumas

Description

@radumas

This was originally a plotly.py issue I was told to reopen here. Forgive the lack of js reproducible example

I'm creating a bar plot with multiple categories and I wanted to colour each category differently, even though the categories don't overlap. Multiple rows display fine using barmode='overlay', but if there's only one row in a category, it doesn't display:

image

If I don't split the data, it displays fine (different street, same issue):

image

If I change barmode='relative' then it displays fine:
image

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