1
TimeSeries series = new TimeSeries("Year Chart",Month.class);
series.add(cal.getTime,500);
TimeSeriesCollection dataset = new TimeSeriesCollection(series);
即即使series中只包含一個值,也不能在圖上顯示任何內容。如果TimeSeries只包含一個值,則不顯示任何值
TimeSeries series = new TimeSeries("Year Chart",Month.class);
series.add(cal.getTime,100);
series.add(cal.getTime,500);
TimeSeriesCollection dataset = new TimeSeriesCollection(series);
即當它包含多個值,它顯示在圖
做什麼,如果我想顯示的值甚至系列只包含一個價值?