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

   @HxinY499 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.formatter function, can the parameters it receives be the 
same as tooltip.formatter?
   
   **BODY**
   
   ### What problem does this feature solve?
   
   - I tried to combine the two features of theme and dataset. Define the 
specified attributes in the dataset and use them in the formatter of some 
components of the theme to achieve the purpose of personalizing the style and 
convenient expansion. This method worked in the tooltip. Its formatter can 
accept dataset-related attributes, but the parameters received by 
legend.formatter are only name and cannot be expanded.
   
   ### What does the proposed API look like?
   
   ```javascript
   {
       legend: {
             formatter: (params) => params.data.xxx
       }
   }
   ```
   </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: [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]

Reply via email to