Skip to content

fig.update_layout(template="plotly_dark") does not apply to bar chart hover labels #5561

@Pawansingh3889

Description

@Pawansingh3889

Description

When using template="plotly_dark" with go.Bar, the hover labels remain white-background with dark text instead of inheriting the dark theme colors.

Reproduction

Hover over any bar. The hover label has a white/light background instead of matching the dark theme.

Expected Behavior

Hover labels should use dark-themed colors consistent with the rest of the chart.

Workaround

Environment

  • plotly 6.x
  • Python 3.11

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