ASE Home Page Products Download Purchase Support About ASE
ChartDirector Support
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  DateTime array as input
Posted by Yorick B on Apr-08-2011 20:24
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?

  Re: DateTime array as input
Posted by Yorick B on Apr-08-2011 21:08
I want to apologize for my stupidity, I did something wrong in passing the data! It seems that feeding dateTimes as input does work.