However this means that grid lines that would have fallen on an excluded date are not shown (eg 1st Jan 2011). So I get grid lines displayed for every month except Aug 2010, Jan 2011 etc
When setting the tick unit I tried changing from this:
Code: Select all
axis.setTickUnit(new DateTickUnit(DateTickUnitType.MONTH, 1));
Code: Select all
axis.setTickUnit(new DateTickUnit(DateTickUnitType.MONTH, 1, DateTickUnitType.DAY, 2, new SimpleDateFormat()));
However, this just seems to cause JFreeChart to enter an infinite loop when rendering the chart.
I've looked at the source code for DateTickUnit and googled around but have not found a solution. Is there a known workaround?
thanks
Dave