I found the main problem is the return value of getOptions() is null. The reason causing this is : options is one private variable of Configurable class; Point class is the subclass of Configurable class. So options variable is not accessible for the instance of Point class.
Does anyone do the similar thing before ?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Better support for OHLC charts has been added to GWT Highcharts and is coming in the next release (version 1.2.0). In the meantime though, in order to accomplish this you'll need to add a method like the following to the "org.moxieapps.gwt.highcharts.client.Point" class:
public Number getOpen() {
if (this.nativePoint != null) {
return nativeGetNumber(this.nativePoint, "open");
}
}
And a similar "getHigh", "getLow", and "getClose" method. Can you give that a shot and let us know if that accomplishes what you need in your custom tooltip formatter?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
FYI - Better support for OHLC charts has now been added to GWT Highcharts with the 1.2.0 release. So, you can now setup data points with OHLC (open/high/low/close) data using the new Point constructor like so:
chart.addSeries(chart.createSeries()
.setName("OHLC Data Points")
.setPoints(new Point[]{
new Point(1, 10, 15, 8, 12),
new Point(2, 12, 13, 6, 13),
new Point(3, 13, 16, 11, 15)
})
);
Or, just as a raw two dimensional numeric data array, where each inner array specifies the OHLC data as the second, third, fourth, and fifth elements like so:
The code I am using is like below:
I found the main problem is the return value of getOptions() is null. The reason causing this is : options is one private variable of Configurable class; Point class is the subclass of Configurable class. So options variable is not accessible for the instance of Point class.
Does anyone do the similar thing before ?
Better support for OHLC charts has been added to GWT Highcharts and is coming in the next release (version 1.2.0). In the meantime though, in order to accomplish this you'll need to add a method like the following to the "org.moxieapps.gwt.highcharts.client.Point" class:
And a similar "getHigh", "getLow", and "getClose" method. Can you give that a shot and let us know if that accomplishes what you need in your custom tooltip formatter?
FYI - Better support for OHLC charts has now been added to GWT Highcharts with the 1.2.0 release. So, you can now setup data points with OHLC (open/high/low/close) data using the new Point constructor like so:
Or, just as a raw two dimensional numeric data array, where each inner array specifies the OHLC data as the second, third, fourth, and fifth elements like so: