First of all, This is nice API.. Good job !
I have a small issue with my Bar chart hover. Hover popup is not hiding until I click somewhere. is there any option to auto hide the popup ? thanks for the help.
I have a following code with in the hoverlistner..
public PlotHoverListener buildHoverListner() {
final PopupPanel popup = new PopupPanel();
final Label label = new Label();
popup.add(label);
popup.setAutoHideEnabled(true); // This works only when I click somewhere.
final PlotHoverListener plotHoverListener = new PlotHoverListener() {
@Override
public void onPlotHover(final Plot plot, final PlotPosition position, final PlotItem item) {
popup.hide();
if (item != null) {
final String text = item.getDataPoint().getX() + "%";
label.setText(text);
popup.setPopupPosition(item.getPageX() + 10, item.getPageY() - 25);
popup.show();
}
else if (item == null || item.getDataPoint().getX() == 0.0) {
popup.hide();
}
}
};
return plotHoverListener;
}