Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
JFreeChart
O B
T E
L I B
E R
G R
I C
T I
P A S
T E
true, // ToolTips
true);
// Mostrar el grfico en un archivo PDF
try {
Document doc = new Document();
PdfWriter.getInstance(doc, new FileOutputStream("D:\\doc.pdf"));
doc.open();
BufferedImage bufferedImage = chart.createBufferedImage(500, 300);
Image image = Image.getInstance(bufferedImage, null);
doc.add(image);
doc.close();
JOptionPane.showMessageDialog(rootPane, "Ok.");
} catch (Exception e) {
e.printStackTrace();
}