Problem in X axis, please help

Discussion about JFreeChart related to stockmarket charts.
Locked
sarin
Posts: 10
Joined: Mon Dec 17, 2007 1:29 pm

Problem in X axis, please help

Post by sarin » Fri Jan 18, 2008 10:09 am

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

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Post by david.gilbert » Wed Jan 30, 2008 4:47 pm

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.
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

Locked