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/03/31 03:00:47 UTC

[GitHub] [echarts] pdsuwwz commented on issue #14557: When the trigger type of tooltip is axis, the silent property does not work.

pdsuwwz commented on issue #14557:
URL: https://github.com/apache/echarts/issues/14557#issuecomment-810721331


   > It's not easy to fix this issue elegantly. Since `trigger: axis` is listen `showTip` event from `axis` not from each `series`.
   > For example:
   > 
   > ```js
   >                 series: [
   >                     {
   >                         data: [150, 230, 224, 218, 135, 147, 260],
   >                         type: 'line',
   >                         silent: true,
   >                         lineStyle: {
   >                             type: 'dashed'
   >                         }
   >                     },
   >                     {
   >                         data: [160, 240, 234, 228, 145, 157, 270],
   >                         type: 'line',
   >                         lineStyle: {
   >                             type: 'dashed'
   >                         }
   >                     },
   >                 ]
   > ```
   > 
   > The simple way is to filter `silent` series at `_showAxisTooltip`. What you think @pissang @100pah
   
   Can I understand that the `showTip` of the `series` will always be triggered when the trigger is set to `axis`
   
   No matter what `silent` is set to, because the former has higher priority than the latter 😕


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