I've found that a legend made as annotation is shown incorrectly when an axis is inverted. Can be shown in the XYTitleAnnotationDemo1.java. Just insert inversion setting. JFreeChart 1.0.12.
Code: Select all
DateAxis axis = (DateAxis) plot.getDomainAxis();
axis.setDateFormatOverride(new SimpleDateFormat("MMM-yyyy"));
axis.setInverted(true);