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.
Log in to post a comment.