public interface ChartSelectionEventHandler
chart.setSelectionEventHandler(new ChartSelectionEventHandler() {
public boolean onSelection(ChartSelectionEvent selectionEvent) {
Window.alert("User selected from " + selectionEvent.getXAxisMin() + " to " + selectionEvent.getXAxisMax());
return true;
}
});
See the documentation on the ChartSelectionEvent class for more details on the data
available when a selection event occurs.| Modifier and Type | Method and Description |
|---|---|
boolean |
onSelection(ChartSelectionEvent chartSelectionEvent)
This method is fired whenever a selection event occurs on the plot area of the chart.
|
boolean onSelection(ChartSelectionEvent chartSelectionEvent)
ChartSelectionEvent class for more details on the data available when this event is fired.chartSelectionEvent - The details of the event that occurred.Copyright © 2015. All Rights Reserved.