any alternative to segmentedTimeline

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
develop
Posts: 296
Joined: Wed Mar 23, 2005 10:01 pm

any alternative to segmentedTimeline

Post by develop » Wed Mar 18, 2009 4:17 pm

I have been trying to avoid weekends and holidays from SegmentedTimeline.newFifteenMinuteTimeline(). but its not working.
and looks like there are some performance issues as well.

can any one suggest me to avoid weekends on intraday time line or use some alternative ??

skunk
Posts: 1087
Joined: Thu Jun 02, 2005 10:14 pm
Location: Brisbane, Australia

Re: any alternative to segmentedTimeline

Post by skunk » Wed Mar 18, 2009 4:50 pm

Code: Select all

timeline.addException(...)
timeline.addBaseTimelineException(...)

develop
Posts: 296
Joined: Wed Mar 23, 2005 10:01 pm

Re: any alternative to segmentedTimeline

Post by develop » Wed Mar 18, 2009 6:38 pm

i am using basetimeline as mondaythroughFriday.. then it should exclude weekends i think.
but it does not.
one more question. can you give me example of excluding every weekend ?

promagma
Posts: 2
Joined: Mon Jul 20, 2009 6:27 am

Re: any alternative to segmentedTimeline

Post by promagma » Mon Jul 20, 2009 6:58 am

It is kind of weird, I think for it to actually work you have to call addBaseTimelineExclusions after setting the base timeline.

For performance, maybe this will help

http://www.jfree.org/phpBB2/viewtopic.p ... 25&p=79506

Locked