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 2022/07/28 06:15:19 UTC

[GitHub] [echarts] echarts-bot[bot] commented on issue #17439: [Feature] tooltip 能否支持类似于 series-line.emphasis. focus = 'series' 的效果

echarts-bot[bot] commented on issue #17439:
URL: https://github.com/apache/echarts/issues/17439#issuecomment-1197710330

   @liuyib It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people and get helped, we'd like to suggest using English next time. 🤗
   <details><summary><b>TRANSLATED</b></summary><br>
   
   **TITLE**
   
   [Feature] Can tooltip support effects similar to series-line.emphasis.focus = 'series'
   
   **BODY**
   
   ### What problem does this feature solve?
   
   At present, the series of the chart can highlight the hover item and fade out other items, as shown in the following figure:
   
   ![image](https://user-images.githubusercontent.com/38221479/181418081-ed59e204-71dd-4ddb-9a9b-eaa21543cefa.png)
   
   I don't know if tooltip can also achieve this effect like series, I drew a schematic diagram, as follows:
   
   ![image](https://user-images.githubusercontent.com/38221479/181432490-aef1ba0e-079f-4f8c-bcbb-c952c0ff8705.png)
   
   
   ### What does the proposed API look like?
   
   ````js
   tooltip: {
     formatter: (params) => {
       // when trigger is 'axis'
       // params is a data array of multiple series, add a hover configuration item for each item:
       // [
       // {
       // // ...,
       // hover: true,
       // },
       // {
       // // ...,
       // hover: false,
       // },
       // {
       // // ...,
       // hover: false,
       // },
       // ];
   
       // Where hover: true means the mouse is hovering the series item
     }
   }
   ````
   </details>


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

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

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