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 06:28:24 UTC

[GitHub] [incubator-echarts] zhuqingguang opened a new issue #12835: edgeLabel.formatter: "{@name}" doesn't work

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


   ### Version
   4.8.0
   
   ### Reproduction link
   [https://gallery.echartsjs.com/editor.html?c=x0oOjNDyl-&v=1](https://gallery.echartsjs.com/editor.html?c=x0oOjNDyl-&v=1)
   
   ### Steps to reproduce
   Just  see the demo in my question:    https://gallery.echartsjs.com/editor.html?c=x0oOjNDyl-&v=1
   
   ### What is expected?
   It's should show the value of specified key in my data
   
   ### What is actually happening?
   it shows undefined
   
   <!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE -->
   <!-- This issue is in English. 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:
users@infra.apache.org



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


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

Posted by GitBox <gi...@apache.org>.
plainheart closed issue #12835:
URL: https://github.com/apache/incubator-echarts/issues/12835


   


----------------------------------------------------------------
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


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

Posted by GitBox <gi...@apache.org>.
zhuqingguang commented on issue #12835:
URL: https://github.com/apache/incubator-echarts/issues/12835#issuecomment-650013097


   Thank you very muck. A formatter function is ok,  and the reason i open an issue is that i don't realize it must be used in dataset.
   Maybe the docs could add a description.
   Thanks . It can be closed.


----------------------------------------------------------------
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


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

Posted by GitBox <gi...@apache.org>.
plainheart commented on issue #12835:
URL: https://github.com/apache/incubator-echarts/issues/12835#issuecomment-650660089


   Thanks for your advice!


----------------------------------------------------------------
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


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

Posted by GitBox <gi...@apache.org>.
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