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 2021/05/15 08:27:05 UTC

[GitHub] [echarts] 100pah commented on issue #14939: v5.x版本legend内的tooltip会继承外层的tooltip配置

100pah commented on issue #14939:
URL: https://github.com/apache/echarts/issues/14939#issuecomment-841622181


   That's a breaking change.
   
   ```js
   option = {
       legend: {
           type: 'scroll',
           orient: 'vertical',
           // This is the formatter of legend text,
           // not the formatter of legend tooltip.
           formatter: function(name) {
               return 'Legend ' + name;
           },
           tooltip: {
               show: true,
               // If no formatter declared, inherit the option.tooltip.formatter.
               // That is the same result as in series.
           },
       },
       tooltip: {
           trigger: 'item',
           formatter: '{b}: {c} ({d}%)',
       },
       series: {
           type: 'bar',
           label: {
               formatter: 'label{a}{b}'
           },
           tooltip: {
               // If no formatter declared, inherit the option.tooltip.formatter.
           }
       }
   }
   ```
   
   @pissang Is it reasonable for this case?
   
   


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