Timeseries Chart spanning nanoseconds

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
ankx273
Posts: 4
Joined: Thu Jan 16, 2014 10:17 am
antibot: No, of course not.

Timeseries Chart spanning nanoseconds

Post by ankx273 » Thu Jan 16, 2014 12:13 pm

Hi,
I have to plot timeseries chart where the data is coming in nanoseconds. But, In my current implementation our date axis range is in Milliseconds. So how can I change the Date Axis range from milliseconds to nanoseconds.

PS: I am new to JFree. Please provide detailed solutions/explanations.

Thanks. :)

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

Re: Timeseries Chart spanning nanoseconds

Post by david.gilbert » Thu Jan 16, 2014 3:44 pm

The DateAxis won't give you precision below milliseconds, because under the covers it is working with java.util.Date (which provides only millisecond precision). I don't think there would be any obstacle to creating a ValueAxis subclass that could handle nano-seconds, but there is no implementation of that at present.
David Gilbert
JFreeChart Project Leader

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

ankx273
Posts: 4
Joined: Thu Jan 16, 2014 10:17 am
antibot: No, of course not.

Re: Timeseries Chart spanning nanoseconds

Post by ankx273 » Fri Jan 17, 2014 7:47 am

Hi Gilbert,

Thanks for your suggestion. :)

And I had one more query.I am doing requirement analysis ,so I want to see if JFree Charts are suitable for the application to be developed.

Will JFree Charts be able to handle TB's of data without compromising on perfomance noticeably??

Thanks :)

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

Re: Timeseries Chart spanning nanoseconds

Post by david.gilbert » Fri Jan 17, 2014 8:35 am

No.
David Gilbert
JFreeChart Project Leader

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

ankx273
Posts: 4
Joined: Thu Jan 16, 2014 10:17 am
antibot: No, of course not.

Re: Timeseries Chart spanning nanoseconds

Post by ankx273 » Fri Jan 17, 2014 10:22 am

Hi Gilbert,

Thanks for the prompt reply :)

Just wanted to know how much data JFree Charts can handle ?

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

Re: Timeseries Chart spanning nanoseconds

Post by david.gilbert » Fri Jan 17, 2014 11:51 am

It's something that varies a lot depending on the data type, the renderer (and the attributes you choose), the platform (JRE, available memory, CPU power) and other factors so it is definitely something that you should test for yourself according to your requirements.
David Gilbert
JFreeChart Project Leader

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

ankx273
Posts: 4
Joined: Thu Jan 16, 2014 10:17 am
antibot: No, of course not.

Re: Timeseries Chart spanning nanoseconds

Post by ankx273 » Fri Jan 17, 2014 12:57 pm

Hi Gilbert,

Yeah I got what you trying to say. I will try to create a valueAxis subclass to handle the nanoseconds.

Ashfaqur11
Posts: 2
Joined: Mon Jul 14, 2014 2:05 pm
antibot: No, of course not.

Re: Timeseries Chart spanning nanoseconds

Post by Ashfaqur11 » Mon Jul 14, 2014 2:42 pm

Hey ankx273,

Did you manage to create the "valueAxis subclass" ? If you did could please share some code snippet.
I have a database with nanoseconds time-stamps, so I really need the chart to handle that time-scale.

Thanks.

Locked