score:7
Accepted answer
Change pointer events property of the tooltip to 'auto'
.
tooltip: {
// pointFormat: '<div>{point.date}<br\>{point.air}<br\>${point.y}</div><button>test</button>',
useHTML: true,
formatter: function() {
return '<div>'+this.point.date+'<br\>'+this.point.air+'<br\><span>$'+this.y+'</span><br\><a href="http://www.w3schools.com">testtesttest</a></div>';
},
style: {
pointerEvents: 'auto'
}
},
Live example
score:2
Links in tooltips are a little tricky - particularly when you have lots of points close together, as the tooltip will move onto the next point before you can move your mouse over the link.
Because of this you may be better off adding a 'url' property to each point and then defining a click function for the point itself like this:
plotOptions: {
series: {
point: {
events: {
click: function () {
location.href = this.options.url;
}
}
}
}
Source: stackoverflow.com
Related Query
- (Highcharts) button inside tooltip can't trigger
- Highcharts - How to display legend symbol inside the tooltip
- Tooltip on custom button in Highcharts
- Link inside of a Highcharts tooltip
- How to enable or disable a Highcharts tooltip when a button is clicked?
- Compare two data points inside the tooltip in a Highcharts combination chart
- How to edit tooltip in Highcharts C# code
- how to use highcharts tooltip formatter in python code
- how to add onclick event handler inside highcharts tooltip
- Highcharts refresh tooltip on button click not working with boost modul
- Position a Pie Chart inside a Highcharts Stockchart Tooltip
- How to remove button from Highcharts
- Disable highcharts tooltip on certain lines, leave it enabled on others?
- Customize tooltip and format the number to 2 decimal places of highcharts
- Highcharts tooltip overflow is hidden
- customize highcharts tooltip to show datetime
- highcharts pass multiple values to tooltip
- Disable tooltip on certain points in Highcharts
- Highcharts - manually trigger hover event on a point
- Displaying percentage inside pie item for highcharts
- Highcharts tooltip always on right side of cursor
- Highcharts tooltip formatter
- Format tooltip numbers in Highcharts
- Weird character in front of Highcharts tooltip series names
- Display tooltip for invisible series in Highcharts
- Change Highcharts tooltip formatter from chart Object , after chart is rendered
- Highcharts does not resize charts inside tabs
- Adding thousands separator for custom formatted highcharts tooltip
- Highcharts - labels inside and outside a pie chart
- highcharts tooltip z-index
More Query from same tag
- "pointAttr" attribute is missing in Highcharts library 5.0.0
- Highchart show/hide y axis with multiple associated series
- Hide first tick in Highcharts time series
- Set 'src' attribute for document.createElement('script')?
- How to keep the highcharts legend "on" while hiding the series
- Show label only every x number of steps in highcharts
- X axis shows the time from 12 till 12:55 instead of dates
- Graph doesn't show anything on firefox and ie
- Passing data from JSP to jQuery and plotting in Highcharts
- Highcharts - Remove "hover" state from chart point (that was set externally)
- Highcharts legend items on one line and overlapping
- Plotting an empty interval for elasticsearch date histogram
- highcharts - How to sort xAxis category by total?
- Multiple Boxplots in one HighCharts chart
- display legends for Grouped-Stacked column charts- highhcarts
- How to add gradient colors above chart line?
- Which controller to use for Health Index Monitoring
- set font size of sankey chart in HIghcharter for R
- Highcharts series hover state enables after adding series
- Loading JSON into a Highcharts pie chart
- Why any of highcharts demo example doesn't work?
- Highcharts - Highstock "inputEditDataFormat" breaking input
- Issue in drilldown of highcharts multiseries chart
- Highchart not showing 0 data correctly for pie chart
- How to format data labels with Jquery Highcharttable column charts
- With Highmaps, why is the callback in my jQuery fadein happening prior to the fade completing?
- highcharts: how can I show the floats as datetime in the xAxis correctly
- building a custom histogram with highcharts.js
- Changing xDateFormat in highchart tooltip programatically
- Highmaps heatmap