score:1
You can recognise if button is clicked, by event.target http://jsfiddle.net/2Y3ah/3/
if(!($(event.target)[0].textContent))
alert('chart click!');
score:1
This is the ultimate solution. Just set the following config to the Chart:
$('#container').highcharts({
chart: {
resetZoomButton: {
relativeTo: 'chart'
}
}
});
score:5
A dirty way can be to look at the srcElement
for example test the following (check if firstChild not null ...)
event.srcElement.firstChild.data === "Reset zoom"
Source: stackoverflow.com
Related Query
- Highcharts chart click event fired on click of the reset zoom button (bug?)
- highcharts how to catch and insert logic in click reset zoom button event
- Highcharts : Chart with drilldown how to obtain click event of drill up button
- I am using click event to trigger a new page to generate the drill down data from highcharts however the entire chart is being generated
- resetting chart title on zoom button click in highcharts
- highcharts how to override reset zoom button event
- How to zoom chart line same as legend hover and reset automatically on button click in highcharts?
- Highcharts - Hide the Reset zoom button always
- how to reset Highchart chart width in percentage on Button click
- Add onclick event on chart made with the highcharts library
- HighCharts: How to Determine on Click Event what Data Grouping the Chart is Currently In?
- Highcharts : How do I keep the marker formatting and make the click event fire with a 5K+ point scatter plot?
- Highcharts context menu button appearing thrice for the same chart
- How do I attach a click event handler to the whole HighCharts Gauge control?
- Highcharts - How can I get the nearest point on click event
- Click a point on a highcharts graph from outside of the chart
- Highcharts - Getting chart on click event
- How do I catch a click event on a polygon in HighCharts without having the tooltip popping up
- I want to update my series dynamically on highcharts with a click & also bring it to the original way by clicking on an other button (#previous)
- HighCharts Stacked Column Adding Onclick Event to the chart
- Unable to do any other action than "alert" when triggering the click event on Highcharts (React Native)
- highcharts reset zoom button
- Highcharts - show markers on zoom event (selection) and hide on reset zoom. Is it possible?
- Update datalabel on click of a point on the series of a highcharts timeline chart
- Column rang chart is not getting reset when click on legends in highcharts
- Styling HighCharts reset Zoom button with Material UI button
- Highcharts select chart by button click and adjust width
- How can I unclick an event in highcharts on the second click
- Highcharts - How to get the particular chart id on click of custom label in export options
- Highchart plotOption click event only fired once with mouse stay in the block
More Query from same tag
- Draw sankey when multiple entries have the same name
- Highcharts. Add text at right side and export all into PDF
- Change yAxis values in Compare multiple series highstock for showing point value instead of percentage change value
- highcharts-vue gives error about the highcharts HTML element
- How to Populate Highchart using Json Object
- HighCharts: getting access to calculated spline 'points'
- Need to have Highcharts datalabels set differently to y axis
- Highcharts is not displaying in the div at all, resulting in a blank page - Using python flask and jinja template?
- Get all points in Highcharts scatter plot?
- Angular Highchart - Highstock with multiple lines
- How to make Highstock work with two xAxis?
- How to show text as a series on a chart in Javascript?
- How to set category type with Highcharts and chartkick?
- Highcharts Gantt Vertical Scrollbar Missing in Full Screen Mode
- In Highcharts, how to avoid 'max' value being calculated wrong?
- Highcharts markers on line only where there are labels
- Different interval for HighCharts
- Tooltips getting cutoff in pie charts in highcharts
- Highcharts: Adding clickable image to every xAxis gridLine
- Highcharts bar graph doesn't show yaxis values
- Add Points Using Javascript/Jquery
- Add a custom text tooltip that differs from point to point in Highcharts
- Dynamically Transform Data with User Input (Highcharts, JavaScript,Django)
- I had follow someone code samples and try apply to my HighChart program but I can't get it work at all
- fix a number of labeles on xAxis highcharts
- angularjs, HighCharts (Aw, Snap!) crash
- Difference between highcharts and highstock during real time trace and xAxis with max value
- Howto move dataLabels to the border of the plot area?
- HighStock import issues with Angular 2
- highcharts graph with one regular column and one stacked column