You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@echarts.apache.org by GitBox <gi...@apache.org> on 2018/05/16 11:29:05 UTC

[GitHub] jinnnithya opened a new issue #8352: Customized tooltip shows error in stacked type of charts (when we create table format of tooltip)

jinnnithya opened a new issue #8352: Customized tooltip shows error in stacked type of charts (when we create table format of tooltip) 
URL: https://github.com/apache/incubator-echarts/issues/8352
 
 
   ![error](https://user-images.githubusercontent.com/34932629/40114156-7ecfd6f0-5929-11e8-9f7f-eec4c55aa7d7.png)
   
   `tooltip: {
         formatter: params => {
           let colorSpan = color =>
             '<span style="display:inline-block;margin-right:5px;border-radius:10px;width:9px;height:9px;background-color:' +
             color +
             '"></span>';
           const body = params.map(item => {
             return `<tr>
                         <td>${colorSpan(item.color)}</td>
                         <td>${item.seriesName}</td>
                         <td>&nbsp;&nbsp;</td>
                         <td>${formatNumber(item.value, ',', props.symbol)}</td>
                       </tr>`;
           });
           let html = `<table><tbody>${body}</tbody></table>`;
           return params[0].name + html;
         },`
   
   ### Expected behaviour [期望结果]
   How to remove the unwanted commas in the lable its automitically generated while am using the above code
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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


With regards,
Apache Git Services

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