Page 1 of 1

Problem in X axis, please help

Posted: Fri Jan 18, 2008 10:09 am
by sarin
Hi


We are using Jfreechart to plot a huge amount of data. Date is on x axis and Value on Y axis . When plotting large amount of data the y axis adjusts but the x axis values does not sees due to large amount of values. I think the problem is in adding dataset values . In it adding date as string.

for eg: dataset.addValue(1, "type", "Date")

Is there any solution to overcome it. I want to give the date as value so that it will dajust the x axis value. so i can read the x axis value also



Pls help.



Thanks in advance
Sarin

Posted: Wed Jan 30, 2008 4:47 pm
by david.gilbert
If your x-values are dates, you shouldn't use a CategoryPlot and CategoryDataset, you should switch to using an XYPlot with a DateAxis for the domain axis.