I'm using a TimeTableXYDataset and I create Quarter objects based on the following dates:
March 31, 2004
June 30, 2004
September 30, 2004
December 31, 2004
March 31, 2005
June 30, 2005
September 30, 2005
December 31, 2005
March 31, 2006
June 30, 2006
September 30, 2006
December 31, 2006
I have set the tick unit and the Tick Mark Position:
Code: Select all
xAxis.setTickUnit(new DateTickUnit(DateTickUnit.MONTH, 3, dateFormat));
xAxis.setTickMarkPosition(DateTickMarkPosition.END);
Code: Select all
data.setDomainIsPointsInTime(true);
data.setXPosition(TimePeriodAnchor.START);
though the last 2 statements seem to have no effect in my case.
The problem is that the chart skips the first point on the and labels the 2nd point w/ the 1st date.
For example, March 31, 2004 should have a value of 10 for the 1st area and June 30th should have a value of 20. The label Mar-04 is appearing for the June 30th value.
Also, the last tick mark on the chart is for September 06 instead of Decemeber 06.
Any ideas?