M-F 9a-5p Timeseries?

Discussion about JFreeChart related to stockmarket charts.
Locked
navyrain
Posts: 1
Joined: Thu Apr 22, 2004 1:28 pm

M-F 9a-5p Timeseries?

Post by navyrain » Mon Apr 26, 2004 3:58 am

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.

autochartist

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

Post by autochartist » Sun Jun 20, 2004 5:06 pm

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)

wzwei28
Posts: 105
Joined: Wed Mar 16, 2005 9:17 am
Location: Malaysia, Earth
Contact:

Post by wzwei28 » Fri Jul 21, 2006 11:01 am

Simple Solution Demo
--------------------------
http://www.jfree.org/phpBB2/viewtopic.p ... 8&start=15

Locked