Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RGB values always resolve to the color gray for heatmap and treemap #4645

Closed
cocarmon opened this issue Aug 16, 2024 · 0 comments
Closed

RGB values always resolve to the color gray for heatmap and treemap #4645

cocarmon opened this issue Aug 16, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@cocarmon
Copy link
Contributor

Description

When using rgb values in the colors option for a heatmap or treemap it renders gray regardless of inputted rgb values. However, when using hex values it renders correctly.

Steps to Reproduce

  • Switch the hex value for an rgb value in the colors option property for heatmap

  • You can use the basic heatmap example to recreate this issue

  • You can add the colors option with a hex value first to verify the color change. Then add any rgb values to see that it always resolves to gray for the treemap.

  • You can use the basic treemap example to to recreate this issue

Expected Behavior

  • The Heatmap and Treemap should correctly render colors based on RGB values provided in the colors option.

Actual Behavior

  • Both Heatmap and Treemap render the colors as gray when RGB values are used in the colors option.

Screenshots

Using rgb values:

colors:['rgb(255, 0, 0)']

image
image

Using hex values:

colors:['#ff0000']

image
image

Reproduction Link

codepen

@cocarmon cocarmon added the bug Something isn't working label Aug 16, 2024
@cocarmon cocarmon mentioned this issue Aug 16, 2024
8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant