score:5
Accepted answer
Add the events into a plotOptions
object.
Like this:
plotOptions: {
series: {
events: {
click: function (event) {
alert('event!');
}
}
}
},
score:1
Try inserting the EVENTS: under series block and disable the tooltip as below:
series:
[
{ name: 'Passed',
borderWidth: '1',
borderColor: '#000000',
cursor: 'pointer',
events:
{
click: function ()
{
alert('wow');
}
},
color:'green',
data: [[0, 1, ''],[0, 2, ''],[0, 3, '']],
dataLabels:
{
enabled: 'true',
color: '#000000'
}
}
]
So when you click the chart itself,click event will work fine.
score:3
Because click event on chart, works in the plotArea, not on the serie. Heatmap serie overlap plotArea, so click event doesnt work. You need to catch plotOptions event on serie / point.
Source: stackoverflow.com
Related Query
- Highcharts: click events for heatmaps
- Using PhantomJS to create HighCharts grahps server side for use in PDF creation (PHP) - results in exit code 11 from PHPs exec();
- Click events on highcharts with multiple series
- highcharts change rendered image source on click
- Highcharts custom events plugin right click event not firing
- How to add different click events on each pie of a pie chart created by highcharts usin jquery
- Click event for bar-chart using Highcharts not working?
- Highcharts - how to get consistent mouseover and mouseout events for columns?
- Highcharts display label for pie chart using html table as data source
- Simple, Open source PHP wrapper for Highcharts library
- Highcharts click events not firing when displaying multiple line series
- HTML table as data source for highstock charts using highcharts
- Including source for Alchemy js breaks Highcharts js
- Events for HighCharts - MouseOver/MouseOut
- Using a flask variable as data source for highcharts
- Highcharts Interactivity between plots - looking for code improvements
- Capturing touch events (touchstart and touchmove) in addition to mousemove for synchronising highcharts
- Error: Data source must be a URL for refresh | console error | javascript | Highcharts
- Use Node.js as data source for highcharts
- Highcharts pointer cursor for chart click event
- highcharts drilldown click listener for short column bars problem
- highcharts line chart with same x value, how to handle click events
- Extracting chart coordinates from touch events for custom HighCharts interaction
- generate valid JSON for highcharts on click
- HighCharts turn animation false for line chart
- set different colors for each column in highcharts
- How to modify highcharts legend item click event?
- How to make highcharts default to 0 for missing data
- What format does the highcharts js library accept for dates?
- Changing data dynamically for a series in Highcharts
More Query from same tag
- Divergent chart possible with Highcharts?
- How to specific name (tooltip) for each bar in Highchart
- Highcharts remove zoom feature
- Highcharts area charts with single data, not rendering
- Highcharts. Series have same color after drilldown
- Programmatically zoom out with highcharts-ng
- Highcharts Legend: Overlapping Chart on Small Screens
- Constructing a guage chart with Highcharts
- Adding series dynamically in highcharts
- Is there a way to get the mouse coordinates with respect to page on mouseOver of a point in Highcharts?
- Highcharts Error while loading solid gauge module
- How to shift data using Series.addPoint without shifting x axis values in highcharts
- Managing Data to Highcharts from Webservice
- Charts using Rally
- How to get categories from a database for highcharts using codeigniter
- HighCharts: Category values are repeated. Tooltip not showing the correct date
- highchart get each drilldown categories name on click event
- Play Framework: PDF'ing a template that uses highcharts JS library via a Job
- Highcharts show all categories even when no data
- Fullscreen functionality on saperate html button for highchart in angular
- Highcharts change prototype function based on options
- what is wrong in this data series that high chart does not plot it?
- Highcharts - How to Make the legend item width half of the contianer?
- How to stop plotting the graph if data is blank and continue if data is there on the y-axis in base line highcharts
- Can't add nice shading to highcharts
- Draw polygons with highcharts
- pointStart and pointInterval does not work
- Highcharts - Overlapping scatterplot labels are not readable
- Highcharts: how to get the default export options on a chart?
- Highcharts multiple series in drill down