DefaultCategoryDataset dcd = new DefaultCategoryDataset();
dcd.setValue(23.50, "", "14 Uhr");
dcd.setValue(24.20, "", "15 Uhr");
dcd.setValue(25.00, "", "16 Uhr");
dcd.setValue(25.80, "", "17 Uhr");
dcd.setValue(24.80, "", "18 Uhr");
JFreeChart jchart = ChartFactory.createLineChart("Temperatur", "Uhrzeit", "", dcd, PlotOrientation.VERTICAL, true, true, false);
CategoryPlot plot = jchart.getCategoryPlot();
plot.setRangeGridlinePaint(ColorSettings.darkORbright(ColorSettings.getR("graphicBackground"), ColorSettings.getG("graphicBackground"), ColorSettings.getB("graphicBackground")));
plot.setDomainGridlinePaint(ColorSettings.darkORbright(ColorSettings.getR("graphicBackground"), ColorSettings.getG("graphicBackground"), ColorSettings.getB("graphicBackground")));
plot.getDomainAxis().setLabelPaint(ColorSettings.darkORbright(ColorSettings.getR("graphicBackground"), ColorSettings.getG("graphicBackground"), ColorSettings.getB("graphicBackground")));
LineAndShapeRenderer renderer = new LineAndShapeRenderer();
renderer.setSeriesPaint(0, new Color(ColorSettings.getR("temperature"), ColorSettings.getG("temperature"), ColorSettings.getB("temperature")));
renderer.setBaseItemLabelPaint(Color.YELLOW);
plot.setRenderer(renderer);
plot.setBackgroundPaint(new Color(ColorSettings.getR("graphicBackground"), ColorSettings.getG("graphicBackground"), ColorSettings.getB("graphicBackground")).brighter());
jchart.setBackgroundPaint(new Color(ColorSettings.getR("graphicBackground"), ColorSettings.getG("graphicBackground"), ColorSettings.getB("graphicBackground")));
jchart.getTitle().setPaint(ColorSettings.darkORbright(ColorSettings.getR("graphicBackground"), ColorSettings.getG("graphicBackground"), ColorSettings.getB("graphicBackground")));
plot.getRangeAxis().setAxisLinePaint(ColorSettings.darkORbright(ColorSettings.getR("graphicBackground"), ColorSettings.getG("graphicBackground"), ColorSettings.getB("graphicBackground")));
plot.getDomainAxis().setAxisLinePaint(ColorSettings.darkORbright(ColorSettings.getR("graphicBackground"), ColorSettings.getG("graphicBackground"), ColorSettings.getB("graphicBackground")));
ValueAxis rangeAxis = plot.getRangeAxis();
rangeAxis.setRange(20, 30);
ChartPanel chartPan = new ChartPanel(jchart);