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 2020/07/19 14:52:01 UTC

[GitHub] [incubator-echarts] wf123537200 edited a comment on issue #12986: make markpoint label clickable

wf123537200 edited a comment on issue #12986:
URL: https://github.com/apache/incubator-echarts/issues/12986#issuecomment-660656553


   I think the click event of the markpoint may be use like 
   ```
   myChart.on('click', function (params) {
       if (params.componentType === 'markPoint') {
           // clicked on markPoint
           if (params.seriesIndex === 5) {
               // clicked on a markPoint which belongs to a series indexed with 5
           }
       }
       else if (params.componentType === 'series') {
           if (params.seriesType === 'graph') {
               if (params.dataType === 'edge') {
                   // clicked on an edge of the graph
               }
               else {
                   // clicked on a node of the graph
               }
           }
       }
   });
   ```
   
   The document link:  [Events and Actions in ECharts](https://echarts.apache.org/en/tutorial.html#Events%20and%20Actions%20in%20ECharts)


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