Meaningless Drivel is fun!*
The moose likes Other Open Source Projects and the fly likes Jfree chart-xychart_x-axis date problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Jfree chart-xychart_x-axis date problem" Watch "Jfree chart-xychart_x-axis date problem" New topic
Author

Jfree chart-xychart_x-axis date problem

Ramachandran Sreejith
Greenhorn

Joined: Aug 09, 2008
Posts: 9
Hi

I am using a xyline, (firstXYDataset,secondXYDataset)

I want to show the x-axis as date and time,
but the problem is series.add(double,double) supports type double

how can I pass the values like '2008-08-07 13:26:23' ?

my code

XYSeries series= new XYSeries("series1");
XYSeriesCollection dataset =new XYSeriesCollection();

series.add(double,double);
dataset.addSeries(series);



Thanks
Sreejith
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41106
    
  45
You'll need to use a CategoryDataset instead of an XYDataset.


Ping & DNS - my free Android networking tools app
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Jfree chart-xychart_x-axis date problem
 
Similar Threads
Interactive Charts
Problem with displaying an histogramm with Cewolf
Cewolf Legend coming twice
help me correct the error
Customizing Y Axis in JFreechart