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/17 12:52:47 UTC

[GitHub] [incubator-echarts] GaspardC opened a new issue #12986: make markpoint label clickable

GaspardC opened a new issue #12986:
URL: https://github.com/apache/incubator-echarts/issues/12986


   ### What problem does this feature solve?
   I have a scatter series with markpoint
   when clicked each markpoint has a label 
   I would like to make the label clickable (respond to click events)
   
   ### What does the proposed API look like?
   add a triggerEvent:true to the markdown : { data : { label : { triggerEvent: true }}}
   
   <!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE -->
   <!-- This issue is in English. DO NOT REMOVE -->


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


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

Posted by GitBox <gi...@apache.org>.
guixian95 removed a comment on issue #12986:
URL: https://github.com/apache/incubator-echarts/issues/12986#issuecomment-726016709


   @GaspardC Is this problem solved? I have  same problem ...


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


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

Posted by GitBox <gi...@apache.org>.
wf123537200 commented on issue #12986:
URL: https://github.com/apache/incubator-echarts/issues/12986#issuecomment-660656553


   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


[GitHub] [incubator-echarts] GaspardC commented on issue #12986: make markpoint label clickable

Posted by GitBox <gi...@apache.org>.
GaspardC commented on issue #12986:
URL: https://github.com/apache/incubator-echarts/issues/12986#issuecomment-662869918


   @wf123537200 thanks
   when I click on the markpoint directly I catch the event but I am interested in clicking on the label itself and I don't seem to be able to catch a click event. do you have an idea how ? 
   <img width="318" alt="Capture d’écran 2020-07-23 à 09 54 31" src="https://user-images.githubusercontent.com/9252579/88263713-be83f300-ccca-11ea-9ee4-efac4a574958.png">
   
   


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


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

Posted by GitBox <gi...@apache.org>.
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


[GitHub] [incubator-echarts] guixian95 commented on issue #12986: make markpoint label clickable

Posted by GitBox <gi...@apache.org>.
guixian95 commented on issue #12986:
URL: https://github.com/apache/incubator-echarts/issues/12986#issuecomment-726016709


   @GaspardC Is this problem solved? I have  same problem ...


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


[GitHub] [incubator-echarts] echarts-bot[bot] commented on issue #12986: make markpoint label clickable

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #12986:
URL: https://github.com/apache/incubator-echarts/issues/12986#issuecomment-660089900


   Hi! We've received your issue and please be patient to get responded. 🎉
   The average response time is expected to be within one day for weekdays.
   
   In the meanwhile, please make sure that **you have posted enough image to demo your request**. You may also check out the [API](http://echarts.apache.org/api.html) and [chart option](http://echarts.apache.org/option.html) to get the answer.
   
   If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to dev@echarts.apache.org. Please attach the issue link if it's a technical questions.
   
   If you are interested in the project, you may also subscribe our [mail list](https://echarts.apache.org/en/maillist.html).
   
   Have a nice day! 🍵


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