Allow for axis labels to act as links
I would like for you to able able to specify a link URL for each label on an axis. This would allow for people to click on the label to learn more.
![](https://secure.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?size=40&default=https%3A%2F%2Fassets.uvcdn.com%2Fpkg%2Fadmin%2Ficons%2Fuser_70-6bcf9e08938533adb9bac95c3e487cb2a6d4a32f890ca6fdc82e3072e0ea0368.png)
See docs for axis.labels.formatter
-
erick commented
Hi, what about attaching onclick event handlers to the labels.
this works:
labels: {
formatter: function() {
return "<span onclick='handleClick(event)'>" + this.value + "</span>";
},
useHTML: true
}
but I would prefer using javascript's addEventListener since we cannot get a reference to the chart object itself using HighCharts global namespace. -
Ben commented
Allow labels or even parts of the graph to be links. For example every pie in a pie chart to be a link.
-
With the new 2.0 framework this will be feasible.