score:0
so i found the solution. see below :
mydonutchart.setseriesplotoptions(new seriesplotoptions().setpointclickeventhandler(new pointclickeventhandler() {
@override
public boolean onclick(pointclickevent pointclickevent) {
// log pointclickevent.getpointname();
return false;
}
}));
there you go.
score:1
you just need to add click event listeners in your highcharts. for capturing the click event on the inner level series, add the following code in the series (browsers) tag inside highcharts:
point: {
events: {
click: function(event) {
alert("name: "+this.name + " x: " + this.y + " y: " + this.x);
}
}
}
and for capturing the click on on the outer level 2 series, add the following inside plotoptions>pie tag:
point: {
events: {
click: function(event) {
alert(this.name);
}
}
}
you will get the name as well as x, y values of each point clicked.
Source: stackoverflow.com
Related Query
- Click event on Donut Highchart with GWT
- Use a symfony route with parameters in a click event for highchart series
- Highchart plotOption click event only fired once with mouse stay in the block
- Highcharts : Chart with drilldown how to obtain click event of drill up button
- programatically fire a click event for a point on highchart scatter plot
- body click issue with highchart library
- Get X Axis value on bar Highchart click event
- How to align HTML span at center of highchart donut graph with responsive design?
- Click event on highchart axis
- Fire click event on a highchart column drilldown chart on clicking x axis for drill down reports
- adding click event dynamically created highchart
- HighChart : plot line click event for multiple chart
- Highcharts : How do I keep the marker formatting and make the click event fire with a 5K+ point scatter plot?
- HIghchart Treemap - Add double click event on legend click
- Unable to trigger a click event on series data | Highchart
- Pass data to click event callback in Highstock chart with more then 1000 entries
- Call a function from within highchart click event in reactjs
- HighCharts. Angular. Redraw Chart with new Series on Event Click
- Highchart on bar item click event
- HighChart is preventing click event on a parent
- Set Highchart cursor/pointer with a click on a gmap polyline point
- Cannot update Highcharts series in click event with highcharts-ng
- Highchart annotation click event doesn't work
- Updating a Highchart from a form with a click() event in jquery
- How to trigger legend click event on outside when using Highchart and no using JQuery
- Highchart event click runtime error in Ionic
- I am getting same highchart in pdf using jspdf when I am downloading the pdf with dynamic ids on click
- Highchart Click Event
- HighChart : plot line and plot click event
- Semi circle donut chart in highchart with data labels in corners
More Query from same tag
- how to display the last five hours time from current time(hh:mm ) 12 hour format in high charts?
- Highstock UTC date YTD
- Highcharts in JQuery Tabs - Resizing hidden tab code stops resizing visible tab
- Highcharts Spider Web Label overlap (Top and Bottom)
- Optimal way to display data with uneven time interval Highcharts
- use Highcharts Api to show multiples values
- Highcharts remove zoom feature
- Implementing Prototype-style class structure with jQuery
- Is there a event that is fired when fullscreen transition ends
- How to concatenate 'this.name' with HighCharts & PhantomJS
- HighCharts + xAxis label formatter
- Show default Drilldown in highcharts
- Generating PDFs when JavaScript is being used
- highcharts have data Labels only on some points
- Javascript Highcharts cannot get the name of the click column in the onclick event
- Highcharts - hover event handling for tooltip throws exception
- highmap : not able to display tooltip
- R Highcharter: How to show No Data to Display message?
- First Point hidden by y-axis in datetime graph when container is responsive
- Javascript HighCharts Pie color change not working
- How to resolve the internet browser issue in High Maps?
- Display Percentage Values on Z-axis (highcharts) bubble chart
- Javascript Highcharts v3.0.5 - How to hide Y Axis Title when using multiple Y Axis
- Mixed series type with 'rallychart' component
- Is there a way to use some of the highcharts-stocktools-toolbar items?
- How to implement motion video highchart on Reactjs
- Gradient background bars in Highchart bar chart
- How to use Highcharts getSelectedPoints to get comma separated string of selected pie slices
- Highcharts Date Time With Irregular Intervals Down to Minutes
- R Highcharter Issues with adding plotBands on y-axis where hc_yAxis_multiples used