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 2020/06/20 10:25:15 UTC

[GitHub] [incubator-echarts] plainheart commented on issue #12835: edgeLabel.formatter: "{@name}" doesn't work

plainheart commented on issue #12835:
URL: https://github.com/apache/incubator-echarts/issues/12835#issuecomment-646973669


   To use named dimension, you may need to use [`dataset`](https://echarts.apache.org/en/tutorial.html#Dataset).
   For the example you provided, if you don't want to use `dataset`,
   - `label.formatter: '{@name}'` can be replaced by 
   ```js
   formatter: '{b}'
   ```
   - `edgeLabel.formatter: {@sideDesc}` can be replaced by 
   ```js
   formatter: function(params) {
       return params.data.sideDesc
   }
   ```
   


----------------------------------------------------------------
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:
users@infra.apache.org



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