problem with timeseries graph EVEN DOT IS NOT COMMING

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 EVEN DOT IS NOT COMMING

Post by shanmukha sarma » Thu Jul 27, 2006 2:40 pm

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

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Post by david.gilbert » Thu Jul 27, 2006 3:45 pm

Can you post a small demo that shows the problem?
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

shanmukha sarma
Posts: 9
Joined: Wed May 10, 2006 4:38 am
Location: pune
Contact:

This is sample demo for timeseries chart

Post by shanmukha sarma » Thu Jul 27, 2006 4:22 pm

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.8);

/*s1.add(new Month(3, 2001), 167.3);
s1.add(new Month(4, 2001), 153.8);
s1.add(new Month(5, 2001), 167.6);
s1.add(new Month(6, 2001), 158.8);*/

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

 

Locked