public interface PointLegendItemClickEventHandler
chart.setPiePlotOptions(new PiePlotOptions()
.setPointLegendItemClickEventHandler(new PointLegendItemClickEventHandler() {
public boolean onClick(PointLegendItemClickEvent event) {
Window.alert("Legend item clicked: " + event.getXAsLong() + ", " + event.getYAsLong());
return true;
}
)
});
See the documentation on the PointLegendItemClickEvent class for more details on the data
available when a point legend item click event occurs on a pie series.| Modifier and Type | Method and Description |
|---|---|
boolean |
onClick(PointLegendItemClickEvent pointLegendItemClickEvent)
This method is fired whenever a click event occurs on an individual legend item in a pie series.
|
boolean onClick(PointLegendItemClickEvent pointLegendItemClickEvent)
PointLegendItemClickEvent class for more details on the data available when this event is fired.
Return false to prevent the selection from occurring.pointLegendItemClickEvent - The details of the event that occurred.Copyright © 2015. All Rights Reserved.