Skip to content

Legend not showing when values are var(...) #2012

@vincent-octo

Description

@vincent-octo

Hello,

When using color: {legend: true} and values are "var(--something)" then the legend does not appear.
Additionally, I could not see any warning or error message that could help in understanding why the legend doesn't show.

Here is an notebook that reproduces the bug: https://observablehq.com/d/fbd79535abd8788a
Changing fill: "test" with fill: "sex" will display the legend again, so I am assuming that the "var(...)" content of test is to blame here.

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