JfreeChart做折线图

package org.com.testJfreechart;


import java.awt.BasicStroke;
import java.awt.Color;
import java.awt.Font;
import java.awt.GradientPaint;
import java.io.File;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;

import org.jfree.chart.ChartFactory;
import org.jfree.chart.ChartUtilities;
import org.jfree.chart.JFreeChart;
import org.jfree.chart.axis.NumberAxis;
import org.jfree.chart.axis.ValueAxis;
import org.jfree.chart.plot.PlotOrientation;
import org.jfree.chart.plot.XYPlot;
import org.jfree.chart.renderer.xy.XYLineAndShapeRenderer;
import org.jfree.chart.title.TextTitle;
import org.jfree.data.xy.XYDataset;
import org.jfree.data.xy.XYSeries;
import org.jfree.data.xy.XYSeriesCollection;

public class TestJfreeChart3 {
    //生成折线图的宽高
    private static final int width = 900;
    private static final int height = 400;
    //折线图标题、横坐标、纵坐标
    private static final String title="利益演示图";
    private static final String xString="被保险人年龄";
    private static final String yString="个人账户价值(万元)";
    private static final String Z_String="部分领取(元)";
    //折线图不同颜色线条所代表的含义   个人账户价值低中高  、部分领取
    private static final String funderbalLow = "个人账户价值(低)";
    private static final String funder

你可能感兴趣的:(java基础,特定功能)