Skip to content

Scatter tooltip text color is always black instead of legend/series color #6957

Description

What is the current behavior?

When using a ScatterChart in Recharts, the tooltip text color is always rendered in black. This does not respect the corresponding scatter/legend color, unlike other chart types where tooltip text matches the series color.

Screenshots or videos are welcome.

Image

What is the expected behavior?

Tooltip text color should match the scatter/legend color for each series.

Actual behavior
Tooltip text is always black, regardless of the scatter or legend color

Screenshots or videos are welcome.

Please provide a demo of the problem in a sandbox

Here is how: https://github.com/recharts/recharts/wiki/How-to-share-a-demo

Please try to keep the demo as small as possible while still showing the problem.

Which versions of Recharts, and which browser / OS are affected by this issue? Did this work in previous versions of Recharts?

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