Time Series Chart

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
rishikanth
Posts: 6
Joined: Fri Nov 13, 2009 10:02 pm
antibot: No, of course not.

Time Series Chart

Post by rishikanth » Fri Nov 13, 2009 10:11 pm

Hi Group,

I have been using JFC for couple of months and I could understand as how it works. The problem i am facing (I am not sure if this can be done) is using Marker with TimeSeries Chart. My objective is to have a Marker if there is discontinuity in the graph ( i get this using Null , as in Guide). For example if there is Discontinuity between Oct 25th and Oct 30th, I am choosing some date between them say 27th Oct and placing the marker on the location. But If I want a Marker between Dates Oct 25th and Oct 26th, How Can I get it. Is it possible ?

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

Re: Time Series Chart

Post by david.gilbert » Tue Nov 17, 2009 10:58 pm

I don't understand your question. How do you display the marker? Do you want an additional marker at the earlier date, or just one?
David Gilbert
JFreeChart Project Leader

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

rishikanth
Posts: 6
Joined: Fri Nov 13, 2009 10:02 pm
antibot: No, of course not.

Re: Time Series Chart

Post by rishikanth » Wed Nov 18, 2009 3:01 am

Hi,

Thanks for the reply.

I am able to get marker on the chart. For example if I have dataset like ({2,22nd},{6,23rd}{8,24th}{2,30th}{2,31st}{2,1st}{4,2nd}{6,4th}). If I want discontinuity in the graph between 24th and 30th, I choose in between date say 27th and I pass "null" for Range in the timeseries to get discontinuity. I create a marker at this date the 27th using ValueMarker in the graph.

Now my question is: If want a marker in "between" dates 23rd and 24th, How can I do it. The marker must not pass through the date point for 23rd and 24th.

Question 2:

Is it possible to fine tune the DateAxis to hold both Dates and Time. For Example 22nd 9:00AM,10:AM.......1:00pm , 23rd etc. Can I have both dates and time on the same DomainAxis and plot the graph.

Locked