Candle Chart Axis.java has one line missing in a constructor
krishnak opened this issue · 0 comments
krishnak commented
Discussed in #120
The CandleChartTest when executed throws a null pointer error as axisBounds is NOT initialised in the constructor which takes a date time.
Fix: Add a line before line 313 in Axis.java
axisBounds = new Bounds();
Work around for others who don't want to wait for the new maven release.
Copy the Helper.java to your project and replace line 1315 to
Axis axis = new Axis(START.toEpochSecond(getZoneOffset()),END.toEpochSecond(getZoneOffset()), Orientation.HORIZONTAL, AxisType.LINEAR,Position.BOTTOM, "Time");
Make sure you use this version of helper and not the one from the library