#1060 Legend layout wrong when saving to PNG

1.0.x
open
nobody
General (896)
5
2012-11-27
2011-10-28
Anonymous
No

In JFreeChart version 1.0.13, the attached source code displays and saves as a PNG two simple charts. The only different between the charts is the key used to identify the series. Displaying both charts works as expected. However, when saving both charts as PNGs, one of the file is identical to the displayed version while the other has a problem with the legend. The item in the legend is not centered in the legend. Instead, both the series colored line and label/key are in the top left (i.e. (0,0)) location. Attached are source code deminstrating this bug, two screenshots of the displayed charts, and the two saved PNGs.

Discussion


  • Anonymous
    2011-10-28

    zip of source code, two screen shots, and two PNG-saved charts

     
    Attachments