JFreeChart - 垂直折线图

时间:2011-10-22 13:16:11

标签: jfreechart linechart

如何创建像http://livedocs.adobe.com/flex/3/html/images/VerticalLine.png这样的图表。使用XYPlot。提前谢谢。

1 个答案:

答案 0 :(得分:2)

许多图表允许您在相应的图表工厂中指定PlotOrientation,但createTimeSeriesChart()不是其中之一。您也可以使用source作为指南创建自己的变体。

附录:正如@Gavin评论的那样,PlotOrientation.VERTICAL是`XYPlot的默认值,所以你会做这样的事情(未经测试):

XYPlot plot = new XYPlot(dataset, timeAxis, valueAxis, null);
plot.setOrientation(PlotOrientation.HORIZONTAL);
相关问题