Normally you pass in arrays of data values to create the dataset, as all of our examples do. That defines which coordinate is the time coordinate, x or y. In your case you are using the default constructor where you must explicity set it.
TimeSimpleDataset tsd = new TimeSimpleDataset(); tsd.setXCoordinateType(ChartObj.TIME_COORDINATE); GregorianCalendar cal = new GregorianCalendar(); tsd.addTimeDataPoint(cal, 10.0);
GregorianCalendar x = tsd.getTimeXDataValue(0); double y = tsd.getYDataValue(0);