jfreechart圖表的數據刷新

首先經過 JFreeChart chart = ChartFactory.createStackedBarChart()方法建立一個柱狀圖 建立完成後若是要刷新柱狀圖的數據可經過CategoryPlot plot = (CategoryPlot)chart.getPlot(); 獲取CategoryPlot 對象plot 而後從新設置數據集合 String[] rowKeys = { 「起飛航班」
相關文章
相關標籤/搜索