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/02/15 08:25:54 UTC

[GitHub] [echarts] plainheart edited a comment on issue #16464: [Bug] TypeError: api.coord is not a function

plainheart edited a comment on issue #16464:
URL: https://github.com/apache/echarts/issues/16464#issuecomment-1039990270


   > I need an event to be fired if i click on label.
   
   You can determine if it's triggered by labels via `e.event.topTarget.type` or `e.event.topTarget.style.text`.
   
   ```js
   chart.on('click', { seriesName: 'SERIES NAME' }, e => {
     const target = e.event.topTarget;
     if (target.type === 'tspan') {
        // triggered by label
     }
     // Or
     if (target.style.text) {
         // ...
      }
   })
   ```
   
   > And also is it possible to show multiple markers/symbols on same coordinate?
   
   I have no good idea about this. But based on the information returned by the event, I think you can give some tips by customizing tooltip content or using [`graphic component`](https://echarts.apache.org/en/option.html#graphic) or [`custom series`](https://echarts.apache.org/en/option.html#series-custom) to draw symbols that share the same coordinate.
   


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