Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Grouped bar chart leaves gaps when some traces have no values for an x-axis tick #7546

Open
@amna-sib

Description

I’m trying to create a grouped bar chart with multiple traces (e.g., 5). For certain x-axis ticks, not all traces have values. When a trace has no value for a tick, Plotly currently leaves an empty space in the group, which creates unwanted gaps in the bars. Additionally, when the last trace is missing, the bars can look not centered, which makes the chart visually misleading.

Proposed behavior:
If only 4 traces out of 5 have data for a given x-axis tick, Plotly should render just 4 bars side by side without reserving space for the missing trace. This would make grouped bars more compact and visually accurate.

Note that this is the same problem as in this closed issue that was never resolved: #930

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

        AltStyle によって変換されたページ (->オリジナル) /