peterwinners opened a new issue #12730:
URL: https://github.com/apache/incubator-echarts/issues/12730


   ### What problem does this feature solve?
   需求:通过formatter或其他方式获取到dataset指定行指定列某一个值。
   
场景:option中设计与数据完全分离,所有数据存放于dataset中,从后台接口中获取,便于全局数据控制。数据中包含单个统计数字,在页面上展示方式为:“单位数量:1000”,其中数量1000也希望从dataset中获取到,在设计option时,只用填入模板即可
   
   ### What does the proposed API look like?
   series: {
       label: {
           // `'{@score}'` 表示 “名为 score” 的维度里的值。
           // `'{@[score[0]}'` 表示"名为score"的维度里第一个值。
           formatter: '{@score[0]}'
       }
   }
   
   <!-- This issue is generated by echarts-issue-helper. 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]

Reply via email to