ddx32 commented on issue #13385:
URL: https://github.com/apache/echarts/issues/13385#issuecomment-1103841367
I managed to find a workaround which makes this use case work, but an
elegant implementation would certainly be welcome (and probably more
future-proof). The trick is to define a global symbol for all markLines in
series and then disable the start point in the `data` array:
```js
{
type: 'line',
name: 'myLine',
markLine: {
symbol: 'your custom symbol',
data: [
{
name: 'name',
xAxis: 1,
symbol: 'none', // <- disable the start point symbol here
}
]
}
}
```
The downside to this approach, though, is that you can only define one
symbol per set of data, so if you need to render more markLines with different
symbols, you need to add them as multiple entries to the series. Please someone
correct me if there is a better solution.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]