appy_base Posted April 10, 2008 Report Share Posted April 10, 2008 It seems setLeftGap and setBottomGap does not work a line chart. setTopGap and setRightGap works. This is how I set the gaps: chart1.setLeftGap( 1 ); chart1.setRightGap( 1 ); chart1.setTopGap( 1 ); chart1.setBottomGap( 1 ); But there is no effect on the area/gap between the graph image and X or Y axis. Right and Top gap changes according to the gap values. The reason I need to set the gap to a very low number like 1 is so as to accommodate a graph in a small area on the page. Any one running into this scenario? Any suggestions? Thanks, Appy Link to comment Share on other sites More sharing options...
maximop Posted April 11, 2008 Report Share Posted April 11, 2008 The gap properties are used to set the distance in pixels between the border of the bounding rectangle (chart control) and the plot area of the chart not between the plotted area and the axes. Link to comment Share on other sites More sharing options...
appy_base Posted April 11, 2008 Author Report Share Posted April 11, 2008 I am attaching the image. What I would like it to have less distance between the axis and the image border. I am able to successfully do that for right and top gap but not for left or bottom gap. Thanks, Arpan Link to comment Share on other sites More sharing options...
mcstoufer Posted April 15, 2008 Report Share Posted April 15, 2008 could we see your code for this? Link to comment Share on other sites More sharing options...
mcstoufer Posted April 15, 2008 Report Share Posted April 15, 2008 I found that I could stretch things out by hiding the axes and: trend.setBottomGap(-1); trend.setLeftGap(-2); trend.setTopGap(-1); trend.setRightGap(-2); This was just a blind guess on my part and documented nowhere. I hope this helps. Link to comment Share on other sites More sharing options...
appy_base Posted April 16, 2008 Author Report Share Posted April 16, 2008 Thanks for sharing this. It it really helpful. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.