2011-10-22 132 views

回答

2

許多圖表可讓您在相應的圖表工廠中指定PlotOrientation,但createTimeSeriesChart()不是其中之一。作爲替代,您可以使用source作爲指導創建自己的變體。

附錄:作爲@Gavin評論,PlotOrientation.VERTICAL是`XYPlot默認的,所以你會做這樣的事情(未經測試):

XYPlot plot = new XYPlot(dataset, timeAxis, valueAxis, null); 
plot.setOrientation(PlotOrientation.HORIZONTAL); 
+1

更具體一點,你要尋找的'PlotOrientation .HORIZONTAL「從屏幕頂部到底部繪製圖表。 –

+0

@Gavin:好點;更新。 – trashgod