I found the answer by looking at the source - call "setState('hover');" on the point that you want to be highlighted.
To give a more direct answer (e.g. for then you don't have access to the highcharts instance):
you need to create a mouseover event and give it proper pageX and pageY attributes before you trigger it.
Here is an example of how to select (hover) the last valid point in series programmatically:
// Find last not-null point in data let last = data.indexOf(null) - 1; last = (last === -2) ? data.length - 1 : last; const lastPoint = this.series.points[last]; // Trigger the hover event lastPoint.setState('hover'); lastPoint.state = ''; // You need this to fix hover bug this.tooltip.refresh(lastPoint); // Show tooltip
Just to add an important information:
For StockChart this solution doesn't work:
In this example you have to replace this:
One possible solution is available here.
- Highcharts - manually trigger hover event on a point
- Manual trigger mouseover event or simulate hover effect on point
- How to manually trigger the afterSetExtremes event from a series click event in HighCharts
- how to get chart object inside a point event function in Highcharts
- Highcharts : How do I keep the marker formatting and make the click event fire with a 5K+ point scatter plot?
- Highcharts Scatter Chart Data Point Hover
- Highcharts manually setting legendItemClick event
- Highcharts - How can I get the nearest point on click event
- Highcharts -- Dynamically apply "halo" effect to points without triggering hover event
- Highcharts point click event returns "hover" state instead of "select" state
- 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
- Highcharts Stacked Area: legend hover event
- hover on a point in highcharts graph using playwright and typescript
- Bold X-Axis Label on Point Hover in Highcharts Column Chart
- Highcharts Line Chart - Highlight xAxis labels on point hover
- How to capture the hover event in highcharts labels?
- Highcharts trigger background click event
- change data point value inside load event in HighCharts
- Higchahrts click entire column to trigger point click event
- How to highlight a point without using any event or action in highcharts
- Highcharts - hover event handling for tooltip throws exception
- Highcharts click event should apply only on marker point
- add a point on mouse click event on highcharts
- Disable hover on HighCharts
- Highcharts => Getting the id of a point when clicking on a line chart
- How do I add an event listener to a Highcharts object *AFTER* I've created it
- How to get Highcharts X-Axis Categories starting at the left most point
- highcharts - disable fading series on marker hover
- Highcharts scatter chart with a name per point
More Query from same tag
- Check for duplicate dates in a table mysql
- How to use highcharts' charts.get(location) in React?
- Exception in highcharts.js line 167
- Trying to update name and date in a highcharts column chart
- Create TopoJson/GeoJson map of US South East
- HighCharts: How to Determine on Click Event what Data Grouping the Chart is Currently In?
- Highcharts 4.0.4 Export Issue on Internet Explorer
- Getting JSON from Google for Highmaps
- How to change color of line above or below specify curve line in Highcharts?
- Display HighStock y-axis and its labels on the right of the series
- Highcharts - getting all values scrollable after setting min-max range
- Plot Y axis data based on x axis values from a csv file : Highcharts
- Highcharts disable click on column
- Flowing Merge of points with same x-axis in the same series
- HighCharts: getting access to calculated spline 'points'
- Highchart show grid lines on y-axis for every point
- Want to avoid spacing between each stacked bars in highcharts?
- How can I put xAxis in highcharts starting in the horizontal line when all values are in 0?
- Fomatting labels on Y-axis in Highcharts with Data from HTML table
- Highcharts downsampling - CSV
- How to enable y-axis panning while zoom in highcharts?
- Add onclick event on chart made with the highcharts library
- Highcharts window while decreasing not working
- HighCharts using Themeroller
- Highcharts yaxis max
- How to change color of lable (name) in a highcharts series?
- Highcharts General Drawing parameter
- Display/hide Highchart content
- Highcharts zIndex of Y-Axis title
- Trying to figure out how to assign specific colors to specific data points in Highchart Pie chart