Page 1 of 1

M-F 9a-5p Timeseries?

Posted: Mon Apr 26, 2004 3:58 am
by navyrain
Hi - I have price data per minute that I wish to plot. However, I wish to omit weekends and minutes which are not part of the open market time. I've tried

Code: Select all

        SegmentedTimeline st = SegmentedTimeline.newMondayThroughFridayTimeline();
        st.setBaseTimeline(SegmentedTimeline.newFifteenMinuteTimeline());
Which causes an exception saying:
java.lang.IllegalArgumentException: baseTimeline.getSegmentSize() is smaller than segmentSize
at org.jfree.chart.axis.SegmentedTimeline.setBaseTimeline(SegmentedTimeline.java:467)
The opposite, with newMondayThroughFridayTimeline as the baseTimeline for newFifteenMinuteTimeline, seems to be the same as new15mintimeline without any basetimeline.

Any help? I didn't find a solution in the developer's manual.

RE : M-F 9a-5p Timeseries?

Posted: Sun Jun 20, 2004 5:06 pm
by autochartist
Have a look at what was suggested here:

http://www.jfree.org/phpBB2/viewtopic.php?t=5931

I am facing the same problem as you ... hopefully the addException(...) bit as suggested by kingguppy is the path that will lead to a solution.

If you have had any success since posting your message, please let us know.

8)

Posted: Fri Jul 21, 2006 11:01 am
by wzwei28
Simple Solution Demo
--------------------------
http://www.jfree.org/phpBB2/viewtopic.p ... 8&start=15