aboutcroon removed a comment on issue #4125:
URL: https://github.com/apache/echarts/issues/4125#issuecomment-777209105
> var datas = [
> {value: 335, name: '直接访问'},
> {value: 310, name: '邮件营销'},
> {value: 234, name: '联盟广告'},
> {value: 135, name: '视频广告'},
> {value: 1548, name: '搜索引擎'}
> ]
>
> ```
> legend: {
> orient: 'vertical',
> left: 10,
> data:datas,
> formatter:function(name){
> let singleData = datas.filter(function(item){
> return item.name == name
> })
> return name + ' ' + singleData[0].value;
> }
> }
> ```
this way do make effects, thanks !
----------------------------------------------------------------
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]