Skip to content

[Feature] gauge color steps in {progress: itemStyle: color and borderColor} #21452

@wvhn

Description

@wvhn

What problem does this feature solve?

introduce color segments (available in gauge axisLine) in gauge progress. Refer to #15471

Segments should look like this:
Image

There has been an answer by @Ovilia on the issue linked above but that covers color stops in gauge.axisLine and not in gauge.progress.

What does the proposed API look like?

progress: {
  itemStyle: {
    color: [
      [0.25, 'green'],
      [0.5, 'yellow'],
      [0.75, 'red']
      ]
  }
}

and accordingly for borderColor

Metadata

Metadata

Assignees

No one assigned

    Labels

    enThis issue is in Englishnew-featurependingWe are not sure about whether this is a bug/new feature.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions