Contiguous multiple day charts

Discussion about JFreeChart related to stockmarket charts.
Locked
SANMARINO68
Posts: 1
Joined: Fri Apr 27, 2007 7:04 pm
Contact:

Contiguous multiple day charts

Post by SANMARINO68 » Fri Apr 27, 2007 8:44 pm

We are trying to display a 3 day chart as one contiguous chart. In other word we want to not display the dead data zone of before 9:30 AM and after 4:30 PM. We want to stitrch the chart segments togther.

We have found some information in your JFreeChart docs but we do not get these results. Does someone have some code or suggestion from their own experience. Any help would be appreciated

jwenting
Posts: 157
Joined: Sat Jul 15, 2006 7:46 am

Post by jwenting » Thu May 03, 2007 9:45 am

You want to use a SegmentedTimeLine for the time axis and remove the intervals on which the market you're plotting isn't trading.

Code: Select all

        Timeline timeline = getTimeLine(chartPeriod, mergedQuoteTimes, showWeekends, is24HourInstrument);
        if (timeline != null) {
            dateAxis.setTimeline(timeline);
        }

Locked