Focal Point
White Spacing around a Graph save as a JPEG

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/7651077842

September 26, 2007, 02:12 PM
Nailzz
White Spacing around a Graph save as a JPEG
Hi all I am looking for the API set commamd that decreases the whitespace around a graph. I am also looking to decrease the space in between the x axis. For example may range is
0 20 40 60 80 100 which is what I want but the gap between them are quite wide what set command shrinks this. I am using the Focus Graph Documentation, but I don't see how to do this.


WebFOCUS 7.1.3 on Win 2000
September 26, 2007, 02:40 PM
dhagen
The gap - to the best of my knowledge - is dictated by the width of the graph. Mess with the following to change it.
ON GRAPH SET VAXIS 17
ON GRAPH SET HAXIS 210


The following will help you change the white space around the graph. I can't remember what does what, you'll just have to read and play.
setExtendToFrameEdge(true);            // Extend graph to use entire presentation area.
setFootnoteDisplay(false);
setSubtitleDisplay(false);
setTitleDisplay(false);
setToolTipDisplay(false);              // Turn off tool tips
setFrameDisplay(false);                // Turn off graph frame display
setLegendDisplay(false);               // Turn off legend
setLegendAutomatic(false);
setRect(getFrame(), new Rectangle(-16000,-16000,32000,32000));
setPlace(true); 



"There is no limit to what you can achieve ... if you don’t care who gets the credit." Roger Abbott
September 28, 2007, 04:55 PM
Nailzz
Thanks dhagen, I will have to keep playing with the setRect(getFrame(), new Rectangle(-16000,-16000,32000,32000)).

Do you know how to change the color of the background not of the graph but the whitespace behind the graph?


WebFOCUS 7.1.3 on Win 2000
September 29, 2007, 09:28 AM
dhagen
Setting background colour:
setFillColor(getChartBackground(), new Color(255 255 204)); // chart background stuff

Please read the doc. This is all there.


"There is no limit to what you can achieve ... if you don’t care who gets the credit." Roger Abbott