Supress Date Gaps on CandleStick Chart

Discussion about JFreeChart related to stockmarket charts.
Locked
ravionweb

Supress Date Gaps on CandleStick Chart

Post by ravionweb » Tue Sep 23, 2003 3:19 pm

Hi,

I am using JFreeCharts0.9.8 to display CandleStick chart for Stock Data representation. I am not able to supress the non trading days and it displays as a gap on the chart. For e.g It displays candle sticks for Monday to Friday but displays two days blank gaps for saturday and sunday and then creates the next trading day candle stick.

Kindly help.

Your's
Ravi Shanker

socgen
Posts: 21
Joined: Thu Sep 11, 2003 8:55 am

Post by socgen » Wed Sep 24, 2003 9:26 am

Hi,

I used the following piece of code I found in another post on the forum (don't remerber which one) to at least hide saturdays and sundays :

Code: Select all

SegmentedTimeline segmentedTimeline = SegmentedTimeline.newMondayThroughFridayTimeline(); 
DateAxis dateAxis = new DateAxis("dateAxisLabel", segmentedTimeline);
Hope it helps,

Locked