The SimplePlot has the following PlotHoverListener which simply displays the X Axis label String:
SimplePlot chart = new SimplePlot(model,options);
final PopupPanel popup = new PopupPanel();
final Label label = new Label();
popup.add(label);
// add hover listener
chart.addHoverListener( new PlotHoverListener() {
public void onPlotHover( Plot plot, PlotPosition position, PlotItem item )
{
if (item != null ) {
List<String> selectedSubstructuresInRange = new ArrayList<String>();
if (plotInXAxis.equals(PLOT_SUBSTRUCTURES)){
selectedSubstructuresInRange = retrieveSelectedInRange(substructuresFilter, null, plotInXAxis);
}
else if (plotInXAxis.equals(PLOT_REACTION_MECHANISMS)){
selectedSubstructuresInRange = retrieveSelectedInRange(reactionMechanismsFilter, null, plotInXAxis);
}
label.setText(selectedSubstructuresInRange.get(item.getDataIndex()));
popup.setPopupPosition(item.getPageX() + 10, item.getPageY() - 25 );
popup.show();
}
}
}, false );
When
I hover on any of the Series, it is highlighted, but the highlighting (and the popup position)
for the red series is offset to the right of where the actual bar is
(see image):

I think this might be because of the different BarAlignment (LEFT for blue series, RIGHT for red), which I'd prefer not to change because it looks nicer.
Is there any way of controlling the highlighting position when I hover on, or to switch it off ?
Thank you very much!
Guillem