Hi guys, first off, let me say that JFreeChart is an awesome software package, and I have used it in many of my courses at school.
Here's my scenario. I am tracking events in time, and logging them in a log file, the events are logged as a "long", and thus are simply read back in.
I am able to create my data sets fine, and they graph fine.
The problem is, I may have data over the course of minutes, hours, days, or weeks. What I would like to accomplish is 2 things. When my graph first displays, I would like to display a fixed time interval, such as 1 hour, or 1 day. With JFreeChart, it is initially displayed such that all the data is visible.
I have no problem changing the range of my graph, but I'm not able to change it to my liking.
First off, is there a way to set the domain tick values so that it *always* displays a date, such as Apr 12 2006, at the beginning of the domain, and tick values for each minute thereafter. I think I would use the method setStandardTickUnits in the ValueAxis class, but am not sure exactly how to go about this.
The other thing I'm not quite clear on, is the mapping of domain values, to doubles. My domain values are longs, but the methods for setting, getting the range return doubles. Any explanation on that?
Also, I feel I should be using the DateAxis instead of the ValueAxis, but I get lost somewhere in the inheritence chain.
Thanks for the help!