Skip to content

Can't set unknown domain in colour scale #446

@rossburton

Description

@rossburton

I'm using the color scale with explicit domain/range to associate status names with colours:

  color: {
    type: "categorical",
    domain: ["success", "failed"],
    range: ["green", "red"]
  },

But status names I forgot to list come out invisible. A way of setting the unknown() value would be useful, it looks like it is hardcoded to undefined at

return ScaleO(scaleOrdinal().unknown(undefined), channels, {range, ...options});
.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions