score:42
Accepted answer
Have you tried going through the Highcharts API?
You may want to look @ xAxis.events.setExtremes And/Or chart.events.selection
score:0
You want to look at the redraw event as well. When you zoom, the chart is redrawn to reflect the changes. chart.events.redraw
events: {
redraw: function(){
console.log(this.xAxis);
console.log(this.yAxis);
}
}
score:0
I found a way using redraw global event:
{
redraw: function(event) {
if (
(event ? .target ? .axes[0] && event ? .target ? .axes[0].max !== event ? .target ? .axes[0].oldMax) ||
(event ? .target ? .axes[1] && event ? .target ? .axes[1].max !== event ? .target ? .axes[1].oldMax)) {
// Here you can be sure the this is closer to a zoom event... almost, because it also detect drag on the map :(
}
}
}
I just want to leave this here because I decide to use something else but my future self might need it :D
Source: stackoverflow.com
Related Query
- How do I detect a zoom event in highcharts?
- highcharts how to catch and insert logic in click reset zoom button event
- highcharts how to override reset zoom button event
- How do I add an event listener to a Highcharts object *AFTER* I've created it
- Highcharts chart click event fired on click of the reset zoom button (bug?)
- Highcharts : Chart with drilldown how to obtain click event of drill up button
- How to pass custom data into Highcharts graph click event
- how to get chart object inside a point event function in Highcharts
- How to hide Axes Crosshairs by onclick event in Highcharts
- highcharts xAxis limit how far zoom in
- How to detect double clicks or long clicks on points in Highcharts charts?
- 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 to add series after click event in HighCharts
- How to use HighCharts to plot aggregate hourly event rates?
- How do i add mouse wheel code in Angular2 highcharts in typescript
- how to display 2 same highcharts without duplicate the code
- How can I pass values from Highcharts event callbacks (click, mouseOver, mouseOut) back to React component member function?
- How to edit tooltip in Highcharts C# code
- How to correct mouse event in Highcharts
- How do I attach a click event handler to the whole HighCharts Gauge control?
- How to change the defualt behavior of drag event in Highcharts or Highstock?
- how to use highcharts tooltip formatter in python code
- How can I make React Native in Android aware of a click event in a tooltip in a Highcharts chart?
- How to zoom in Highcharts Android
- Highcharts - How can I get the nearest point on click event
- how to add onclick event handler inside highcharts tooltip
- How to get current level on drilldown event in Highcharts treemap?
- How to get the angular component class reference inside an emitted Highcharts selection event callback function?
- Highcharts Detect mouseOver event only in the colored area
More Query from same tag
- php-fed Highcharts time series throws T_variable error, why?
- HighCharts - Creating a Scatter with datetime
- Highcharts Line Chart - Highlight xAxis labels on point hover
- Highcharts - Having bar percentage appear in tootlip
- Print charts in new tab
- How to dynamically create timeline chart on click of x-range chart in highcharts angular
- Set Highchart cursor/pointer with a click on a gmap polyline point
- Use images in Highcharts as xAxis labels
- HighCharts Custom maps not working on react
- How can i configure this milestone in HighStock
- How to add space between chart and axis in highcharts
- MultiAxis HighChart: show different color
- Export multiple Highchart as Zip file to my project directory
- HTML page lose formatting on external server
- highchart network network-graph
- How to change highcharts bars width individually
- Passing Django data to Highcharts via JSON
- Highcharts load date values in X axis
- Highcharts columns are thin when 10+ series displayed
- Click event on clicking on the graph
- ngUpgrade two versions of Highcharts, error 16
- Highstock Time series with uneven data set distrubition
- Highcharts - detect when render (or redraw) event is caused by a resize/reflow?
- highchart's hidden chart renders out of container in Angularjs
- Highcharts x-axis format data according to random min intervals
- (HighCharts) Color reverts on mouseOut after manual mouseOver
- highcharts drilldown not working
- HighCharts Tooltip AJAX request onmouseover Event
- Format Highcharts chart tooltip pointFormat in formatter
- highcharts: Other settings for y-axis. Dealing with large numbers