I have created a JFreeChart
in a ChartPanel
and I want to save it programmatically. The functionality should exist as it is possible to do this manually (right click menu and PNG
option from there).
I found the method chartPanel.createImage(??, ??)
, but I don't know what width
and height
I need to set.
ChartUtilities.saveChartAsPNG()
variations? – Keynote