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/07 11:46:40 UTC

[GitHub] [echarts] echarts-bot[bot] commented on issue #17331: [Feature] visualMap是否可以提供selectData接口

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

   @N1body 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 visualMap provide selectData interface?
   
   **BODY**
   
   ### What proplem does this feature solver?
   
   When you encounter a need to display two thermal maps on the page: First of all, when you click on one chart, the corresponding elements in another chart need to be highlighted. Selected element update selection status.
   
   I have tried to use Connect and monitor Hover to change the high bright state through Dispactch, but these two methods can only change the state of the Chinese block in the combination of the heat map, and cannot change the state of VisualMap's state
   
   After consulting the relevant documentation, it was found that VisualMap only provided [SelectData Manage](https://echarts.apache.org/API.html#ACTION.VISELECTDARAPARAPE) event interface. This can only change the range and cannot change the selection state. After checking the source code, I found that VisualMap updates the selected state by monitoring the MouseHover event, so I cannot update the state by changing the highlight state of the second table.
   
   I think this is an interface with a high demand, which can greatly improve the interaction of ECharts.
   
   ### What does the proposed api look like?
   
   Maybe you can add interfaces such as `selectdata` to VisualMap: you can update the VisualMap selected status through the data selected by MouseHover. Or add an Option or judgment rule to VisualMap: you can update the status by listening to the high -brightness of the highlight state
   </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