Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Jfree chart-xychart_x-axis date problem

 
Ramachandran Sreejith
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You'll need to use a CategoryDataset instead of an XYDataset.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic