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

Jfree chart-xychart_x-axis date problem

Ramachandran Sreejith

Joined: Aug 09, 2008
Posts: 9

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();


Ulf Dittmer

Joined: Mar 22, 2005
Posts: 41106
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