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

105
Views
Echarts wordcloud 2 onclick

Estoy usando word-cloud2 con echarts:

¿Hay alguna opción para agregar onclick a cada palabra en echarts word-cloud2. Mi código está en js y es el siguiente:

 var chart = echarts.init(document.getElementById('main')); var option = { tooltip: {}, series: [ { type: 'wordCloud', gridSize: 2, sizeRange: [12, 50], rotationRange: [-90, 90], shape: 'apple', width: 600, height: 400, tooltip: { width: 0, height: 0, }, drawOutOfBound: true, data: [ { name: 'Machine Learning', value: 10000, }, ] } ] }; chart.setOption(option); window.onresize = chart.resize;
about 4 years ago · Santiago Trujillo
1 answers
Answer question

0

después de su llamada a setOption agregue esto:

 chart.on('click', 'series.wordCloud', function (el) { console.log(el); // add your custom logic here });
about 4 years ago · Santiago Trujillo 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!