Also i just got the Demo Collection for 1.0.13; im trying to get a DateAxis to display as follows:
http://picasaweb.google.com.br/ricardo. ... 0976390434
MultipleAxisDemo3 shows multiple domain axes; but how would you move the axis label to the center between the ticks.
Code: Select all
DateAxis dateAxis = (DateAxis) plot.getDomainAxis(0);
DateTickUnit unitMonth = new DateTickUnit(DateTickUnitType.MONTH, 1, new java.text.SimpleDateFormat("MMM"));
dateAxis.setTickUnit(unitMonth, false, true);
try {
DateAxis yearAxis = (DateAxis) dateAxis.clone();
DateTickUnit unitYear = new DateTickUnit(DateTickUnitType.YEAR, 1, new java.text.SimpleDateFormat("yyyy"));
yearAxis.setTickUnit(unitYear, false, true);
plot.setDomainAxis(1, yearAxis, true);
plot.mapDatasetToDomainAxis(0, 1);
plot.setDomainAxisLocation(1, AxisLocation.BOTTOM_OR_RIGHT, true);
}
catch(Exception e) {
}
thanks in advance