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/10/27 06:23:11 UTC

[GitHub] [incubator-echarts] Vignesvar-ap opened a new issue #13492: how to display additional information in the sankey chart tooltips

Vignesvar-ap opened a new issue #13492:
URL: https://github.com/apache/incubator-echarts/issues/13492


   ### Version
   4.8.0
   
   ### Steps to reproduce
   There are no details in the documentation about to display the additional information in the tooltips. Can you please help us to display the additional information in the report. Please find the data format below. 
   
   [sample-sankey-code.txt](https://github.com/apache/incubator-echarts/files/5443314/sample-sankey-code.txt)
   
   
   
   ### What is expected?
   I would like to display additional information like Average sales,  total sales value between the edges. 
   
   ### What is actually happening?
   Chart displays the source and destination node and value properly.
   
   <!-- 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] Vignesvar-ap closed issue #13492: how to display additional information in the sankey chart tooltips

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


   


----------------------------------------------------------------
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 #13492: how to display additional information in the sankey chart tooltips

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


   @Vignesvar-ap Hi, I suppose that the information you need is all in the first parameter in the callback function.
   Here is a demo. https://gallery.echartsjs.com/editor.html?c=x-2oD3M18w&v=1


----------------------------------------------------------------
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] echarts-bot[bot] commented on issue #13492: how to display additional information in the sankey chart tooltips

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #13492:
URL: https://github.com/apache/incubator-echarts/issues/13492#issuecomment-717014275


   Hi! We've received your issue and please be patient to get responded. 🎉
   The average response time is expected to be within one day for weekdays.
   
   In the meanwhile, please make sure that **you have posted enough image to demo your request**. You may also check out the [API](http://echarts.apache.org/api.html) and [chart option](http://echarts.apache.org/option.html) to get the answer.
   
   If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to dev@echarts.apache.org. Please attach the issue link if it's a technical questions.
   
   If you are interested in the project, you may also subscribe our [mailing list](https://echarts.apache.org/en/maillist.html).
   
   Have a nice day! 🍵


----------------------------------------------------------------
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] Vignesvar-ap commented on issue #13492: how to display additional information in the sankey chart tooltips

Posted by GitBox <gi...@apache.org>.
Vignesvar-ap commented on issue #13492:
URL: https://github.com/apache/incubator-echarts/issues/13492#issuecomment-718597219


   Hi, 
   Thanks for your response, I have tried the callback function parameter but the tooltip is not visible in the front-end chart now. It has display earlier. Please find the sample code I have used in the JS file. 
   
   formatter: function(param, ticket, callback){
   			// console.log("param"+JSON.parse(param.dta.source[0]));
   			//	return `${param.source} -> ${param.target} : ${value}`;
   				for(var i=0; i<param.length; i++){
   				console.log("param -> "+param[i].value);
   					return param[i].value;
   				}
   				
   			}
   Please let me know where I did a mistake here. 


----------------------------------------------------------------
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] Vignesvar-ap commented on issue #13492: how to display additional information in the sankey chart tooltips

Posted by GitBox <gi...@apache.org>.
Vignesvar-ap commented on issue #13492:
URL: https://github.com/apache/incubator-echarts/issues/13492#issuecomment-719195736


   Dear @plainheart, 
   Thank you very much for your support that the given sample code is working for me.


----------------------------------------------------------------
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 #13492: how to display additional information in the sankey chart tooltips

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


   I'd like to suggest using  formatter callback function to get the data of node and assemble and return your information.
   
   ```js
   (params: Object|Array, ticket: string, callback: (ticket: string, html: string)) => string
   ```


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