Hi,
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.
timeseries graph EVEN DOT IS NOT COMMING WHEN THERE IS ONLY
ONE ENTRY
IF IT HAS MORE THAN ONE ENTEY IT IS WORKING VERY FINE.
with regards
shannu sarma
problem with timeseries graph EVEN DOT IS NOT COMMING
-
- Posts: 9
- Joined: Wed May 10, 2006 4:38 am
- Location: pune
- Contact:
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
Can you post a small demo that shows the problem?
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader


-
- Posts: 9
- Joined: Wed May 10, 2006 4:38 am
- Location: pune
- Contact:
This is sample demo for timeseries chart
hi
if there is one entry like this then no dot is comming
it there is more than one entry a graph is comming.
public XYDataset getXYDataset() {
TimeSeriesCollection timeSeriesDataSet = new TimeSeriesCollection();
TimeSeries s1 = new TimeSeries("1", Month.class);
color=brown]comments in java [/color]
/* only one enty that is */
s1.add(new Month(2, 2001), 181.
;
/*s1.add(new Month(3, 2001), 167.3);
s1.add(new Month(4, 2001), 153.
;
s1.add(new Month(5, 2001), 167.6);
s1.add(new Month(6, 2001), 158.
;*/
TimeSeries s2 = new TimeSeries("2", Month.class);
/* only one enty that is */
s2.add(new Month(2, 2001), 129.6);
/*s2.add(new Month(3, 2001), 123.2);
s2.add(new Month(4, 2001), 117.2);
s2.add(new Month(5, 2001), 124.1);
s2.add(new Month(6, 2001), 122.6);*/
timeSeriesDataSet.addSeries(s1);
timeSeriesDataSet.addSeries(s2);
return timeSeriesDataSet;
}
Actually I am working in jsf chart creator which is build on jfreechart
I send a mail to jsf chart creator author(cagatay.civici@gmail.com) he told me to post in jfreechart
i think
this is the problem in jfreechart
please send me some sample example if you got the solution
i am forwording that mail send by cagatay
if there is one entry like this then no dot is comming
it there is more than one entry a graph is comming.
public XYDataset getXYDataset() {
TimeSeriesCollection timeSeriesDataSet = new TimeSeriesCollection();
TimeSeries s1 = new TimeSeries("1", Month.class);
color=brown]comments in java [/color]
/* only one enty that is */
s1.add(new Month(2, 2001), 181.

/*s1.add(new Month(3, 2001), 167.3);
s1.add(new Month(4, 2001), 153.

s1.add(new Month(5, 2001), 167.6);
s1.add(new Month(6, 2001), 158.

TimeSeries s2 = new TimeSeries("2", Month.class);
/* only one enty that is */
s2.add(new Month(2, 2001), 129.6);
/*s2.add(new Month(3, 2001), 123.2);
s2.add(new Month(4, 2001), 117.2);
s2.add(new Month(5, 2001), 124.1);
s2.add(new Month(6, 2001), 122.6);*/
timeSeriesDataSet.addSeries(s1);
timeSeriesDataSet.addSeries(s2);
return timeSeriesDataSet;
}
Actually I am working in jsf chart creator which is build on jfreechart
I send a mail to jsf chart creator author(cagatay.civici@gmail.com) he told me to post in jfreechart
i think
this is the problem in jfreechart
please send me some sample example if you got the solution
i am forwording that mail send by cagatay
Code: Select all
Hi Shanmukha,
Can you post this to the jfreechart - chart creator forum.
I'll check it out soon.
Regards,
Cagatay
On 7/26/06, Shanmukha Sarma <ssarma@techmahindra.com> wrote:
--------------------------------------------------------------------------------
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.
It there is two entry then no problem
With regards
Shannu sarma