[Solved]CombinedDomainXYPlot: Domain Axis Data points issue

Discussion about JFreeChart related to stockmarket charts.

[Solved]CombinedDomainXYPlot: Domain Axis Data points issue

Postby dsambhar » Thu Aug 09, 2012 8:55 am

I am drawing Price and volume movement against time for a stock in CombinedDomainXYPlot. Price chart has 50 & 200 Day moving average drawn as line and volume chart only have 50 day moving average.

The issue is when I am drawing chart for Jul 8th, 2011 - Aug 8th, 2012, dateaxis adds 20 days on left and 20 days on right to ranage. Thus, eating up 1.5" - 2 inch of chart space.

Is it possible to restrict the date axis to start the data points from specified date range?

Thanks,
Dheeraj
dsambhar
 
Posts: 4
Joined: Mon Oct 31, 2011 11:02 am

Re: [Solved]CombinedDomainXYPlot: Domain Axis Data points is

Postby dsambhar » Fri Aug 10, 2012 6:05 am

Used setLowerMargin() and setUpperMargin() function on axis.
dsambhar
 
Posts: 4
Joined: Mon Oct 31, 2011 11:02 am


Return to JFreeChart - Stockmarket

Who is online

Users browsing this forum: No registered users and 2 guests