Timestamp on X-Axis with JFreeChart that supports Date AND Time - possible?

Hi all,

I've asked this question on the JFreeChart forums, but answered yet. Hopefully someone here has some more experience with JFreeChart! Any help is appreaciated!

The class DateAxis supports dates, but unfortunately does not care about the time of the corresponding date. Here is my scenario:

I need to display DateTime items on one axis. If I use a DateAxis, then Exceptions are thrown, because for one date I can only add one item to the chart. So if I have more than one item to add on one date, which is the case, I get the Exception because it seems that JFreeChart does not care about the time. If it would care about the time, than I could add more than one item per date. So does anyone have a workaround? Or maybe JFreeChart supports my requirement, but I can't find the solution...

So to make it clear: I am looking for a way to create an axis that allows Timstamps (Date + Time in hh:mm:ss and millis). Any idea?

[961 byte] By [JavaParsa] at [2007-11-27 5:31:37]
# 1
The problem I see is finding room on the axis to display a date and a time. Are you talking of requiring a format such as dd-MM-yyyy HH:mm:ss for each annotated grid line? If so then for a typical chart size of say 640 by 480 you would only show 2 or maybe 3 annotated grid lines.
sabre150a at 2007-7-12 14:56:59 > top of Java-index,Java Essentials,Java Programming...
# 2
Yes, you are right. One problem is finding room on the axis to display a date and a time. I will do it another way. thanks anyway!
JavaParsa at 2007-7-12 14:56:59 > top of Java-index,Java Essentials,Java Programming...