Bilge opened a new issue #14696:
URL: https://github.com/apache/echarts/issues/14696
### Version
5.1.0
### Steps to reproduce
```js
series: [{
step: 'end',
data: AppCharts.dataset,
markLine: {
data: [
{
yAxis: 123,
lineStyle: {
color: '#fff3',
},
label: {
formatter: 'min\n${c}',
fontSize: 12,
color: '#677a59',
},
},
],
},
}],
```
### What is expected?
`symbolOffset` should be optional.
### What is actually happening?
`symbolOffset` is required.
> TS2322: Type '{ yAxis: number; lineStyle: { color: string; }; label: {
formatter: string; fontSize: number; color: string; }; }' is not assignable to
type 'MarkLine1DDataItemOption | MarkLine2DDataItemOption'.
Property 'symbolOffset' is missing in type '{ yAxis: number; lineStyle: {
color: string; }; label: { formatter: string; fontSize: number; color: string;
}; }' but required in type 'MarkLine1DDataItemOption'.
<!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE -->
<!-- This issue is in English. DO NOT REMOVE -->
--
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.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]