axis white space
Posted: Thu Oct 20, 2011 7:13 pm
Is it possible to alter (increase/decrease) the white space surrounding the chart area created by making an axis visible ?
If I create a chart that is 800x600
1) make all 4 axis visible
2) make it a 2d chart (3dview = false)
3) set all margins to zero (left right top and bottom)
4) set header and footer visible = false
5) do nothing else and then render it, I get a square surrounding a square.
The chart area is outlined in the middle of the 800x600 graph. I have a white space border presumably from each axis of about 15 pixels left and right actually 15 left 16 right.. I assume there is a rounding issue there.
I get a 25 pixel margin/border/whitespace top and bottom. If I add a title to any axis the space for it is added to the white space and the chart area becomes smaller.
I'd like to be able to use the white space from the axis being visible either selectively increasing or decreasing them so I can have a fixed chart size regardless of if there is a multi-line title top or bottom or a sub footer or whatever.
I have not been able to adjust the size of this white space.. it appears to be 3% top and bottom (3% + 1 pixel ??) and about 2% left and right.. again not exactly 2%)
Ultimately I'd like the chart area to be the same regardless of the size and number of lines used in the top and bottom titles (axis titles or header/sub header, etc) so when I produce several custom charts at 800x600 size the chart area in each is identical, currently it's whatever is left over after titles and axis margin/border/whitespace.
Can you adjust vertical alignment for a top/bottom axis title so it moves into the white space and thus closer to the chart area ? (without using the property that inserts Y pixels between the out chart edge and the border of the title .. that one also reduces chart area instead of using the existing white space)
also .. the multi-line function for titles.. appears to take an array of strings/text for the lines but throws an error when I try to use it... how does multi-line method for titles actually work ?
If I create a chart that is 800x600
1) make all 4 axis visible
2) make it a 2d chart (3dview = false)
3) set all margins to zero (left right top and bottom)
4) set header and footer visible = false
5) do nothing else and then render it, I get a square surrounding a square.
The chart area is outlined in the middle of the 800x600 graph. I have a white space border presumably from each axis of about 15 pixels left and right actually 15 left 16 right.. I assume there is a rounding issue there.
I get a 25 pixel margin/border/whitespace top and bottom. If I add a title to any axis the space for it is added to the white space and the chart area becomes smaller.
I'd like to be able to use the white space from the axis being visible either selectively increasing or decreasing them so I can have a fixed chart size regardless of if there is a multi-line title top or bottom or a sub footer or whatever.
I have not been able to adjust the size of this white space.. it appears to be 3% top and bottom (3% + 1 pixel ??) and about 2% left and right.. again not exactly 2%)
Ultimately I'd like the chart area to be the same regardless of the size and number of lines used in the top and bottom titles (axis titles or header/sub header, etc) so when I produce several custom charts at 800x600 size the chart area in each is identical, currently it's whatever is left over after titles and axis margin/border/whitespace.
Can you adjust vertical alignment for a top/bottom axis title so it moves into the white space and thus closer to the chart area ? (without using the property that inserts Y pixels between the out chart edge and the border of the title .. that one also reduces chart area instead of using the existing white space)
also .. the multi-line function for titles.. appears to take an array of strings/text for the lines but throws an error when I try to use it... how does multi-line method for titles actually work ?