Skip to content

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

@cocarmon

Description

@cocarmon

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions