use of org.jfree.chart.ChartRenderingInfo in project pentaho-platform by pentaho.
the class JFreeChartEngine method saveChart.
/**
* Create an image file using dataset object. This method takes a dataset object, e.g. a DialWidgetDefinition,
* creates a JFreeChart object from it, and then creates an image file.
*
* @param dataset
* The
* @param title
* The title of the chart
* @param units
* The units of the chart value
* @param fileName
* The path and file of the image to create
* @param width
* The width of the image to create
* @param height
* The height of the image to create
* @param outputType
* The type of the image to create
* @param writer
* A writer to writer the image map into
* @param logger
* The logger to log any messages to
*/
public static void saveChart(final Dataset dataset, final String title, final String units, final String fileName, final int width, final int height, final int outputType, final PrintWriter writer, final ILogger logger) {
ChartRenderingInfo info = new ChartRenderingInfo();
JFreeChartEngine.saveChart(dataset, title, units, fileName, width, height, outputType, writer, info, logger);
}
Aggregations