I found a solution that was post here, saying that it's an option to have a datetime array as input:
//DateTime[] dataX, double[] dataY
TrendLayer trendLayer2 = c.addTrendLayer2(Chart.CTime(dataX), dataY, 0x008888);
or
TrendLayer trendLayer2 = c.addTrendLayer2(dataX, dataY, 0x008888);
doesn't work.
If i try it with another solution this won't work either:
lineLayer.addDataSet(dataY, 0x666666, "test").setDataSymbol(
Chart.SquareSymbol, 7);
lineLayer.setXData(dataX);
or
lineLayer.setXData(Chart.CTime(dataX);
Am I doing something wrong? |