score:3
Apparently, this behaviour is caused by boost module. Look at the example without it: http://jsfiddle.net/xrpf0pfq/12/. You can check in a source code of a boost module (http://code.highcharts.com/modules/boost.src.js) that the boostThreshold property is set with value 5000. You can set boostThreshold by yourself, check out the example: http://jsfiddle.net/xrpf0pfq/16/.
plotOptions: {
series: {
boostThreshold: 8001
}
}
Also, not working click event with boost module is a known issue (beside, it is not good idea to click on a point where there are thousands of them and they are densely populated). There is a workaround for that though, take a look at this topic on GitHub: https://github.com/highcharts/highcharts/issues/4569. As Paweł mentioned, to make click event work with a huge amount of points, you need to enable halo and make it clickable (here is an example with boost module loaded and with more points than boostThreshold value but with click event working: http://jsfiddle.net/xrpf0pfq/17/).
mouseOver: function() {
if (this.series.halo) {
this.series.halo.attr({'class': 'highcharts-tracker'}).toFront();
}
}
Regards.
score:0
Ran accross the same problem. The halo-workaround didn't work for me, because i wanted to get the click event for the recently highlighted point, even if it is not directly clicked. Highcharts has the ability to highlight the nearest point if you point anywhere on the chart. My workaround is, to use the tooltip formatter to store the x value away and then use it on the global click event for the chart.
See the fiddle:
http://jsfiddle.net/StefanJelner/a1m0wuy6/
var recent = false;
$('#container').highcharts({
chart: {
events: {
click: function() {
console.log('chart click', recent);
}
}
},
tooltip: {
formatter: function() {
recent = this.x;
return 'The value for <b>' + this.x +
'</b> is <b>' + this.y + '</b>';
}
},
plotOptions: {
series: {
point: {
events: {
click: function (e) {
console.log('point click', e); // never happens
}
}
}
}
}
});
This should also work for Version 6.
Source: stackoverflow.com
Related Query
- Highcharts : How do I keep the marker formatting and make the click event fire with a 5K+ point scatter plot?
- How to make click on area above / below small column, in unstacked column chart, fire the point click event
- highcharts how to catch and insert logic in click reset zoom button event
- How do I attach a click event handler to the whole HighCharts Gauge control?
- 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 do I catch a click event on a polygon in HighCharts without having the tooltip popping up
- canvg and highcharts how to include chart legend and keep the chart size?
- highcharts how to make x and y axis starting on the same zero using categories on yAxis
- How can I unclick an event in highcharts on the second click
- HIGHCHARTS How to to make separate colors for shaded region and the line in Area Graph
- How to make a rendered label in Highcharts always visible and still relative to the point clicked or hovered over
- How to make the selection of individual series dynamic in highcharts even after setting max and min?
- How do I make a Highcharts timeline where the labels don't overlap and none are hidden?
- how can I use rangeselector and navigation in highcharts in the given code
- How to manually trigger the afterSetExtremes event from a series click event in HighCharts
- How can I maintain the Highcharts halo effect on pie chart after click and mouseOut?
- How to display legend in Highcharts Waterfall Chart and make the sum column of waterfall appear in multiple colors?
- How to fire click event in moxie highcharts
- How to draw a chart from one array of data and make labels on the chart from another array of data? Highcharts v.4.0.4
- How do you increase the performance of highcharts chart creation and rendering
- 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
- Flexdashboards and Leaflet and marker click with Highcharts
- How to pass custom data into Highcharts graph click event
- How to Check and Uncheck all the Legend elements in HighCharts Linechart?
- How can i keep the color the same in highcharts
- How to remove the halo/glow around a marker upon hovering a series in Highcharts
- Click event not fire in highcharts tooltip
- How to get the Div id of charts in highcharts on click of it in angular 6
More Query from same tag
- how to change color of line chart in highchart based on a categorical column in r?
- Highcharts How to find legend co-ordinates
- Highcharts bubble chart dataLabels overlapping despite z-index
- Overlay 2 series of data of different length with highcharts
- HighCharts Month/multiple data array error
- How to change graph colour above and below plotline in Highcharts
- HighCharts. How to set a fixed width for a chart grid, not including labels?
- How to set highchart boxplot size
- having sorted multi column chart with unsorted series in highchart-ng module
- Highcharts columns are thin when 10+ series displayed
- Highcharts Gauge misplaced labels
- Filling xAxis for all nights in Highcharts
- HighStock BaseSeries
- Highcharts change value out of csv file before plotting as epoch time not in ms so it has to be multiplied by 1000
- How to access different contexts of 'this' in HighCharts callback (Angular / Typescript)
- how can I get the index of point hovering in Highcharts?
- Which one is better to represent an API fetched data in react js and please explain how to do that?
- User Editable Title in Highcharts
- Automatically zooming in on highcharts after loading
- Half node in sankey Highchart
- dynamic data to Jquery code in ASP .Net Visual Studio
- Is it possible to Customize highcharts drillup button
- Google Analytics audience chart with Highcharts
- Write to file and avoid having it overwritten for x amount of time
- How do I add a dropdown to change endRow value in a chart displaying date from an HTML table
- Draw Pie HighCharts from json value,
- running highcharts with flaskr and jinja2
- High Charts add variance instead of values
- Highcharts - Xrange chart events issue
- Highcharts Heatmap background color when invalid data