problem with timeseries graph

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
shanmukha sarma
Posts: 9
Joined: Wed May 10, 2006 4:38 am
Location: pune
Contact:

problem with timeseries graph

Post by shanmukha sarma » Thu Jul 27, 2006 7:29 am

Hi,

No gragh is coming when there is only one entry in the database.

Like this.

public XYDataset getXYDataset() {

TimeSeries s1 = new TimeSeries("1", Month.class);

s1.add(new Month(2, 2001), 181.8);

TimeSeriesCollection timeSeriesDataSet = new TimeSeriesCollection();

timeSeriesDataSet.addSeries(s1);

return timeSeriesDataSet;

}

Here there is only one entry. So no timeseries graphs (scatter,polar,timeseries,xystep) are not coming

What to do to get the (timeseries) graph while there is only one entry.


with regards
shannu sarma
how can we generate reports with jsp pages
step by step including setting of class paths

Mottfried
Posts: 14
Joined: Mon Jul 24, 2006 10:51 am

Post by Mottfried » Thu Jul 27, 2006 9:08 am

The only thing you can get is a point. For a line you need minimal an vector := 2 points.

Locked