public interface PointClickEventHandler
chart.setSeriesPlotOptions(new SeriesPlotOptions()
.setPointClickEventHandler(new PointClickEventHandler() {
public boolean onClick(PointClickEvent clickEvent) {
Window.alert("User clicked on point: " + clickEvent.getXAsLong() + ", " + clickEvent.getYAsLong());
return true;
}
)
});
See the documentation on the PointClickEvent class for more details on the data
available when a point click event occurs.| Modifier and Type | Method and Description |
|---|---|
boolean |
onClick(PointClickEvent pointClickEvent)
This method is fired whenever a click event occurs on an individual point.
|
boolean onClick(PointClickEvent pointClickEvent)
PointClickEvent class for more details on the data available when this event is fired.
If the PlotOptions.setAllowPointSelect(boolean)
option is true, the default action for the point's click event is to toggle the point's select state.
Returning false cancel this action.pointClickEvent - The details of the event that occurred.PlotOptions.setAllowPointSelect(boolean)
option is enabled.Copyright © 2015. All Rights Reserved.