You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2022/06/21 15:14:35 UTC

[GitHub] [echarts] echarts-bot[bot] commented on issue #17262: [Feature] legend图例组件,formatter属性能否将对象中所有数据返回,不仅仅返回一个name属性

echarts-bot[bot] commented on issue #17262:
URL: https://github.com/apache/echarts/issues/17262#issuecomment-1161900412

   @JackeYueChao It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people and get helped, we'd like to suggest using English next time. 🤗
   <details><summary><b>TRANSLATED</b></summary><br>
   
   **TITLE**
   
   [Feature] legend legend component, can the formatter attribute return all the data in the object, not just a name attribute
   
   **BODY**
   
   ### What problem does this feature solve?
   
   When the legend custom name value, want to show the value value, customize the value, and find that if the name value is duplicated, it is impossible to ensure that the value value is displayed normally.
   ![image](https://user-images.githubusercontent.com/103883394/174835072-b92738f6-4b92-4231-9978-b9c7b4178a41.png)
   
   ### What does the proposed API look like?
   
   Use callback functions
   formatter: function (name, data?) {
      data is all parameters
       return 'Legend ' + name;
   }
   </details>


-- 
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: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org