how to restrict values in the x-axis if i use DefaultInter

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
viswa

how to restrict values in the x-axis if i use DefaultInter

Post by viswa » Fri Feb 21, 2003 10:59 am

Hello,

i am using DefaultIntervalCategoryDataset to plot Time Vs. Temp/presure/etc . if the data is more, i dont want to show all time points but all in the other axis. how can i restrict x- axis . i tried with a smaal array by copying some of the values into that and failed.
And how can i change the direction of value in the x-axis since my time value(x-axis) consists of more than 12 characters size.i want to make it vertical.

please help me out ..


Thanks,
viswa

David Gilbert

Re: how to restrict values in the x-axis if i use DefaultI

Post by David Gilbert » Fri Feb 21, 2003 1:04 pm

For time-based data, I wouldn't recommend using the CategoryDataset interface...switch to XYDataset and make use of the TimeSeries/TimeSeriesCollection classes, and the DateAxis classes.

Regards,

Dave Gilbert

Locked