Help on SegmentedTimeline.

Discussion about JFreeChart related to stockmarket charts.
Locked
kennyyeung
Posts: 1
Joined: Mon Feb 14, 2011 7:14 am
antibot: No, of course not.

Help on SegmentedTimeline.

Post by kennyyeung » Mon Feb 14, 2011 7:29 am

Hi everyone,i am facing a problem of skip the non-working day using jfreeChart 1.0.13

My case is , the working hour is start from Mon 7:11 to Sat 17:11 , operating non-stoppable through 24-hour

I found that SegmentedTimeline may be useful . but i get confuse on the useage.

Here are some found on the internet

SegmentedTimeline timeline = new SegmentedTimeline(SegmentedTimeline.MINUTE_SEGMENT_SIZE, 1321, 119);
timeline.setStartTime(SegmentedTimeline.FIRST_MONDAY_AFTER_1900 + 810 * SegmentedTimeline.MINUTE_SEGMENT_SIZE);
SegmentedTimeline basetimeline = timeline;
timeline.setBaseTimeline(basetimeline);
dateaxiss.setTimeline(timeline);

I am confusing on the number 1321,119 and 810. What did these number mean ?
119 should represent the skip period in minute,right?. However if i want to skip 2 hour , why not 120 ?
810/60 =13.5 . Should it equal to the skip start at 13:30?

Appreciate anyone can help

Locked