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

   @Bob2100 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] series-bar.markLine.label.formatter can return a configuration 
item or a function that both configuration items support
   
   **BODY**
   
   ### 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,
     }
   }
   ```
   For example, I expect distance to be dynamically calculated, like in the 
example above: 'distance: (params) => params.data.space/ 2', but currently 
distance does not support functions, if all configuration items support 
functions, then the programming ability will be greatly enhanced.
   
   Or if 'formatter' already supports the function, the return value of 
'formatter' can be changed to look like this:
   ```
   {
     distance: xxx,
     position: yyy,
     ...
   }
   ```
   distance, position, etc. are the outer layer configurations, which can also 
enhance programming capabilities.
   
   Convenience is convenience now, but it is not flexible enough.
   
   ### What does the proposed API look like?
   
   -
   </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