Skip to content

[Feature] color scale support threshold scale #4165

@xile611

Description

@xile611

What problem does this feature solve?

Image

参考文档:
https://observablehq.com/@d3/quantile-quantize-and-threshold-scales

What does the proposed API look like?

{
  type: 'threshold',
  domain: [0],
  range: ['red', 'green']
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions