Codename One - "Unknown chart type Line"

31 Views Asked by At

In Codename One, I have a form that displays a chart. The chart has two series, one of type Line and one of type Scatter. The chart no longer displays. I ran logcat and the following appeared in the log.

[EDT] 0:8:55,339 - Codename One revisions: 7dd4e7d08b3442d90959477ee52a5ae8c4361b29
[EDT] 0:8:55,343 - Exception: java.lang.IllegalArgumentException - Unknown chart type Line

My code is:

CombinedXYChart.XYCombinedChartDef[] types = new CombinedXYChart.XYCombinedChartDef[]{
        new CombinedXYChart.XYCombinedChartDef(LineChart.TYPE, 0),
        new CombinedXYChart.XYCombinedChartDef(ScatterChart.TYPE, 1)
    };

CombinedXYChart chart = new CombinedXYChart(xyMSD, xyMSR, types);

Is there something I can do to rectify?

0

There are 0 best solutions below