http://www.java2s.com/Questions_And_Answers/JFreeChart/Chart/Area%20Chart.htm
无法颜色渐变:
http://www.jfree.org/phpBB2/viewtopic.php?f=3&t=22745&sid=123a05b88050620ef7ffb3d843164d7f
JFreeChart图表样例:
https://www.kancloud.cn/wizardforcel/jfreechart-dev-guide/111677
http://www.w3ii.com/zh-CN/jfreechart/jfreechart_database_interface.html
JFreeChart文档资料下载:
http://hu437.iteye.com/blog/582931
关于y轴显示4个刻度的解决方案:
public static JFreeChart createBoxAndWhiskerChart(String title, BoxAndWhiskerCategoryDataset dataset) {
// ADD msjian TDQ-5112 2012-4-10: after upgrate to jfreechart-1.0.12.jar, change the default chart wallPaint
ChartFactory.setChartTheme(StandardChartTheme.createLegacyTheme());
// TDQ-5112~
JFreeChart chart = ChartFactory.createBoxAndWhiskerChart(null, title,
Messages.getString(“TopChartFactory.Value”), dataset, false); //
NON−NLS−1
CategoryPlot plot = chart.getCategoryPlot();
NumberAxis rangeAxis = (NumberAxis) plot.getRangeAxis();
rangeAxis.setAutoRange(false);
double min = dataset.getMinRegularValue("0", "").doubleValue(); //$NON-NLS-1$ //$NON-NLS-2$
double max = dataset.getMaxRegularValue("0", "").doubleValue(); //$NON-NLS-1$ //$NON-NLS-2$
double unit = (max - min) / 10;
rangeAxis.setRange(min - unit, max + unit);
rangeAxis.setTickUnit(new NumberTickUnit(unit));
BoxAndWhiskerRenderer renderer = (BoxAndWhiskerRenderer) plot.getRenderer();
renderer.setArtifactPaint(ChartDecorator.COLOR_LIST.get(1));
return chart;
}