问题
I'd like an event to fire if a user clicks the category name of a column chart. I see there are options for if the user clicks the bar itself, but what about the category name of the bar?
回答1:
use this:
$("#container .highcharts-axis-labels:first text").click(function() {
alert($(this).text());
});
fiddle here
回答2:
You can use custom-events plugin, which extends events in chart.
来源:https://stackoverflow.com/questions/31735781/highcharts-event-on-column-category-name-click