I’m using Stockchart from HighCharts API for GWT. I want to select a point when clicking on a button.
I have something like this:
public void onClick(ClickEvent event) {
System.out.println("Clicked + i ." + i + "- >" + points[i].getX() ) ;
chart.getSeries()[0].getPoints()[i].select(true, false);
select(true, false);
i++;
if (i == 4) {
i = 0;
}
}
Now, this works well for Highchart graphic, but for StockChart (same API, just different chart object), it doesn’t work. Doesn’t Stock chart support
this functionality? Maybe due to the navigation? Please help.
EDIT:
I also tested both chart types, and this is the result. It seems to me that, either the StockChart doesn’t support this functionality (maybe beacuse of naviagation options), or it may need some extra configuration. Here are the tests:
Stock test
HighChart test
Thank you
You’ll have to enable Markers.
Try adding this: