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

356
Views
Highcharts word cloud - Make a link to each word

I have made a word cloud referencing this demo. https://codesandbox.io/s/yz3t3

Now my problem is how to make a link to each words made by highcharts word cloud like this page. https://ftmscan.com/topstat#Token

When you toggle any text in word cloud on that site, you will be redirected to the other page. How to make such a link to each text - that's what I am asking.

I was struggling to do this for several days but there seems like no answer anywhere. Any help will be appreciated and thanks in advance.

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

0

You can use the series.point.events.click as a callback where the logic will be included. Here is a basic code that you can start from:

  point: {
    events: {
      click() {
        const point = this;

        console.log(point);

        if (point.name === "Aenean") {
          window.open("https://www.highcharts.com/");
        }
        if (point.name === "Lorem") {
          window.open("https://www.highcharts.com/");
        }
      }
    }
  }

You can easily improve it for your needs - you can use a switch inside this callback or write a function that will be decided which point will be opening the particular link.

Demo: https://codesandbox.io/s/highcharts-react-demo-forked-2idvg?file=/demo.jsx:1187-1564

about 4 years ago · Juan Pablo Isaza Report

0

https://api.highcharts.com/highcharts/series.wordcloud.events.click

Make the series clickable and then check the click-event for details on what exactly was clicked.

event.point seems to hold the most relevant information. It has an ID, a name, a category, etc. You should be able to use some of that information to find which word it is that was clicked.

Working example:

const options = {
  series: [
    {
      type: "wordcloud",
      data: data,
      events: {
        click: e => {
          alert(e.point.name);
          /* Do stuff here, based on e.point.name */
        }
      }
    }
  ]
};
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!