How can I make my highmaps states link to another url using href?
I am able to do so by using dataLabes: formatter() but this only works when using dataLables: enabled true; I would like to make datalabes enabled: false, and still be able to click on the individual states and redirect them to a url.
Am I able to do this?
Code: Select all
dataLabels: {
enabled: false,
formatter() {
return `<a href="https://www.google.com">${this.point.code}</a>`
}
},
Here is a link to my jsfiddle: https://jsfiddle.net/nr9u5cj1/1/
Best regards,