Inhalt

Aktueller Ordner: duesseldorfer-schuelerinventar-java-client/src/main/java/com/duesk/utils
⬅ Übergeordnet

ChartFactory.java

package com.duesk.utils;

import org.jfree.chart.ChartFactory;
import org.jfree.chart.JFreeChart;
import org.jfree.chart.plot.PlotOrientation;
import org.jfree.data.category.DefaultCategoryDataset;

public class ChartFactoryUtil {
    
    public static JFreeChart createLineChart(String title, String xAxis, String yAxis,
                                               DefaultCategoryDataset dataset) {
        return ChartFactory.createLineChart(
            title, xAxis, yAxis, dataset,
            PlotOrientation.VERTICAL, true, true, false);
    }
}