echarts Allow to set the color of markLine symbols

6pp0gazn  于 5个月前  发布在  Echarts
关注(0)|答案(3)|浏览(58)

What problem does this feature solve?

Currently it is not possible to set the color of the symbols of a markLine (different to the line-color)

What does the proposed API look like?

In addition to setting the symbol, we could add a symbolColor , e.g.

markLine: {
      data: [
        [{
          name: 'start',
          coord: [0, 50],
          lineStyle: {
            color: 'blue'
          },
          symbol: 'rect'
          symbolColor: 'blue'
        }, {
          name: 'end',
          coord: [1, 500],
          symbol: 'rect'
        }]
      ]
    }
7ajki6be

7ajki6be1#

Hi! We've received your issue and please be patient to get responded. 🎉
The average response time is expected to be within one day for weekdays.

In the meanwhile, please make sure that you have posted enough image to demo your request. You may also check out the API and chart option to get the answer.

If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to dev@echarts.apache.org . Please attach the issue link if it's a technical question.

If you are interested in the project, you may also subscribe our mailing list .

Have a nice day! 🍵

slmsl1lt

slmsl1lt2#

@tmtron Have you checked ItemStyle?

zynd9foi

zynd9foi3#

@tmtron Have you checked ItemStyle?

That will only change the style/symbols of the line.
Markline does not have an itemStyle property

相关问题