Skip to content

[Feature] 颜色渐变使用conic-gradient #19537

@horizonzzzz

Description

@horizonzzzz

What problem does this feature solve?

是否有方法将颜色设置为conic-gradient形式?
我在使用中并没有找到设置的方法,只能用canvas画一个然后放到color里。

What does the proposed API look like?

设置color:

{
  type: 'conic',
  a: 0,
  x: 0.5,
  y: 0.5,
  colorStops: [{
      offset: 0, color: 'red'
  }, {
      offset: 1, color: 'blue'
  }],
  global: false
}

或者使用渐变色构造函数:

echarts.graphic.ConicGradient

Metadata

Metadata

Assignees

No one assigned

    Labels

    new-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