Bob2100 opened a new issue, #21399:
URL: https://github.com/apache/echarts/issues/21399
### What problem does this feature solve?
```
markLine: {
symbol: ['none', 'none'],
label: {
show: true,
formatter(params) {
return params.data.value
},
position: 'middle',
distance: (params) => params.data.space/ 2,
}
}
```
比如我期望 distance 可以是动态计算的,像上例一样:`distance: (params) => params.data.space/
2`,但目前 distance 并不支持函数,要是所有配置项都支持函数,那么编程能力将大大增强。
或者`formatter`已经支持了函数,`formatter` 的返回值可以改成这样:
```
{
distance: xxx,
position: yyy,
...
}
```
distance 、position 等就是外层的配置,同样可以增强编程能力。
现在方便是方便,就是不够灵活。
### What does the proposed API look like?
-
--
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]