Hi, I'm working with GWT 2.6.0 and GWT Highcharts 1.6.0, and I want retrieve the category from a selected point, but options of selected point are null.
Here the code:
private void manageHandlers() { super.setSeriesPlotOptions(new SeriesPlotOptions() .setPointSelectEventHandler(new PointSelectEventHandler() { @Override public boolean onSelect(final PointSelectEvent event) { Point point = event.getPoint(); JSONObject options = point.getOptions(); System.out.println("Options: " + options); // NULL // JSONValue category = options.get("category"); // System.out.println("Category: " + category); return true; } }) .setAllowPointSelect(true) ); }
Is there a workaround for that? Thanks
You may want to take a look at "Point.setUserData()" and "Point.getUserData()" for this kind of thing.
Resolved. @Shawn thank you very much!
Log in to post a comment.
Hi, I'm working with GWT 2.6.0 and GWT Highcharts 1.6.0, and I want retrieve the category from a selected point, but options of selected point are null.
Here the code:
Is there a workaround for that?
Thanks
You may want to take a look at "Point.setUserData()" and "Point.getUserData()" for this kind of thing.
Resolved.
@Shawn thank you very much!