TimeSeries series = new TimeSeries("Year Chart",Month.class);
series.add(cal.getTime,500);
TimeSeriesCollection dataset = new TimeSeriesCollection(series);
即系列只包含一个值,它不能在图表上显示任何内容。
TimeSeries series = new TimeSeries("Year Chart",Month.class);
series.add(cal.getTime,100);
series.add(cal.getTime,500);
TimeSeriesCollection dataset = new TimeSeriesCollection(series);
即当它包含多个值时,它会显示在图表上
如果我想显示值,即使系列只包含一个值怎么办?