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'
}]
]
}
- Reference to MarkLine API docs
- related Stackoverflow question: How to change the symbol color of a mark line?
3条答案
按热度按时间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! 🍵
slmsl1lt2#
@tmtron Have you checked ItemStyle?
zynd9foi3#
@tmtron Have you checked ItemStyle?
That will only change the style/symbols of the line.
Markline does not have an
itemStyle
property