Missing ticks for montly

Discussion about JFreeChart related to stockmarket charts.

Missing ticks for montly

Postby javageek » Thu Apr 23, 2009 12:52 pm

I have my OHLC chart working pretty good now. But I have run into a bit of a problem. It was an interesting challenge to get the segmented timeline to include only the days that the market is open. But I did make that happen. But this has introduced a problem. When the chart goes out to 12+ months it automatically selects a monthly date tick. But it defaults to a tick every 1st of the month. When it encounters a month where the 1st is on a weekend or the market was closed it generates no tick. I end up with maybe half of the date ticks.

Is it possible to tell the Date Axis to use a date other than the 1st or to tell it to use Monday for monthly/weekly ticks? This would solve a majority of the problems. But there are still months where the market is closed on a Monday. It seems that the best solution for the segmented time line is for the code to simply pick the first occurance of a day in each month when it is displaying monthly ticks. (Just an observation here)

What are my options here?
Posts: 11
Joined: Tue Apr 14, 2009 2:26 pm

Return to JFreeChart - Stockmarket

Who is online

Users browsing this forum: No registered users and 2 guests