File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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: 41863
    
  63
You'll need to use a CategoryDataset instead of an XYDataset.


Ping & DNS - my free Android networking tools app
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Jfree chart-xychart_x-axis date problem