0
使用的JFreeChart我想直线添加到BoxAndWhiskerChart,这样的结果是这样的:如何将一行添加到BoxAndWhiskerChart?
7 | - -
6 | x -
5 | x x
4 | - -
3 | -
2 |------------ <- ?
1 |
0 +------------
A B C
这基本上是我用于创建图表代码:
DefaultBoxAndWhiskerCategoryDataset dataset = new DefaultBoxAndWhiskerCategoryDataset();
//adding data to dataset...
BoxAndWhiskerRenderer rnd = new BoxAndWhiskerRenderer();
CategoryPlot plot = new CategoryPlot(dataset, x, y, rnd);
JFreeChart chart = new JFreeChart(plot);
是有一种简单的方法可以将一条线添加到图表中?