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.
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.