Skip to content

Candle Chart Axis.java has one line missing in a constructor #121

@krishnak

Description

@krishnak

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions