score:1
Accepted answer
As you noticed, there isn't click
event available in events
. It is still possible to add event click to a specific part of the axis. For example:
chart: {
type: 'heatmap',
marginTop: 40,
marginBottom: 80,
plotBorderWidth: 1,
events: {
load: function () {
var axis = this.colorAxis[0];
axis.legendGroup.on('click', function (e) {
console.log('Click:', e);
});
}
}
},
Demo: http://jsfiddle.net/ubjsgtdo/
legendGroup
is a group with all items of the colorAxis (scale, labels etc.). If you want, you can use legendSymbol
to get click event only on the scale (rect).
Source: stackoverflow.com
Related Query
- HighCharts : How to add click event on colorAxis in heatmap
- How to add series after click event in HighCharts
- Highcharts how to add treemap upon click event on line chart?
- How do I add an event listener to a Highcharts object *AFTER* I've created it
- Highcharts : Chart with drilldown how to obtain click event of drill up button
- highcharts how to catch and insert logic in click reset zoom button event
- In high chart how to add event for label click
- How to pass custom data into Highcharts graph click event
- How to attach click event function in Highcharts
- Highcharts : How do I keep the marker formatting and make the click event fire with a 5K+ point scatter plot?
- How do i add mouse wheel code in Angular2 highcharts in typescript
- How do I attach a click event handler to the whole HighCharts Gauge control?
- How to add different click events on each pie of a pie chart created by highcharts usin jquery
- How can I make React Native in Android aware of a click event in a tooltip in a Highcharts chart?
- Highcharts - How can I get the nearest point on click event
- how to add onclick event handler inside highcharts tooltip
- How do I catch a click event on a polygon in HighCharts without having the tooltip popping up
- How to get xAxis and yAxis information on a Highcharts heatmap click event?
- How to add table on click over each column in Highcharts Reactjs?
- How can I unclick an event in highcharts on the second click
- Add X-Axis label click event on Angular 2 Highcharts
- How to add click event on django-chatit chart
- How to call EventEmitter on click event with HighCharts
- How to manually trigger the afterSetExtremes event from a series click event in HighCharts
- How to fire click event in moxie highcharts
- add a point on mouse click event on highcharts
- How to modify highcharts legend item click event?
- how to add copyright symbol in a highcharts title?
- Highcharts - Double click event
- Highcharts chart click event fired on click of the reset zoom button (bug?)
More Query from same tag
- highcharts-more + requirejs, Highcharts undefined
- Highcharts : using same div to load a chart multiple times with different series data
- Variable in valueSuffix?
- Highcharts: Getting x-axis to display legend
- highcharter both nominal and percentage values
- Remove Highcharts dataLabel border
- Converting image response, after post request, to file
- Why is the line not displayed in the highcharts?
- How to customize annotation's layout in HighCharts
- Can I create such chart with highcharts
- "Highcarts is not defined error" after installing highcharts
- How to slide highcharts?
- Displaying datatable in highcharter tooltip
- HighChart legend I override mouseover but loose transparency functionality. How do I keep it?
- Highmaps: Show datalabels for only one series
- Current month tick labels in week format and other tick labels in month/year format(Highcharts)
- Highcharts barchart - legend is only hiding first and last series, others stay visible on X-axis
- How to modify Column stacked percent Chart in Highcharts
- How to add a label above each bar in HighCharts
- Enlarge points in highcharts
- Highcharts Polar Chart customization
- Marker transform(translate) doesn't work
- Divergent chart possible with Highcharts?
- How to properly deal with date objects in JSON and HighCharts?
- Retrieve missing column Values
- Highchart tooltip issue
- Highcharts issue updating chart type: not recognizing highcharts functions
- HighCharts: How to use reflow to allow auto-resize after changing size
- Bullet Chart in Series not displaying after y value
- Replacing highcharts.each in my code as it is being deprecated