Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

301
Views
Does anyone have a sample for adding a context menu on ECharts?

Based on the documentation there's an event to handle the context menu for echarts but I couldn't find any sample on how to implement it and how to add a context menu.

https://apache.github.io/echarts-handbook/en/concepts/event#handling-the-mouse-events

Thank you.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Concerning event listener implementation the via zrender echart.getZr().on is the more user friendly way, except you want to force clicking on echart elements with echart.on

myChart.getZr().on('contextmenu', function(params) {console.log("right clicked")});

I don't think there is further contextmenu support from echarts, it would be nice to have a similar stylable one.

But from that point onward you can implement your own context menu.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!