Focal Point
Space Around Graph

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

July 06, 2006, 03:15 PM
jodye
Space Around Graph
Hi Everyone

I have a graph that I am holding as htmtable and then showing in HTMLFORM. The problem is that I need to get rid of the huge margin around the graph. For some reason there is always tons of white space around the graph. I can make it smaller of course but the white space remains.

Before I start trying to figure out the correct graph API lines, I was wondering... is there a simple way to do this that I am missing?

Here is some sample code... so I want the pie chart to be left aligned in the cell... ie flush with the border...

thanks

TABLE FILE CAR
SUM SALES
ON TABLE HOLD AS XXX FORMAT HTMTABLE
END

SET LOOKGRAPH = PIE
GRAPH FILE CAR
SUM SALES
ON TABLE HOLD AS YYY FORMAT HTMTABLE
END
-HTMLFORM BEGIN
html code here that gets mangled if i post it.. so i will remove the < and >.

table cellpadding='0' cellspacing='0' width='100%' border='1'
tr
td align='left' valign='top' width='50%' !IBI.FIL.XXX; /td
td align='left' valign='top' width='50%' !IBI.FIL.YYY;/td
/tr
/table
/BODY
/html
-HTMLFORM END


WF 8.0.0.5M
July 06, 2006, 05:43 PM
jodye
This did the trick...

setTransparentBorderColor(getFrame(),true);
setTransparentBorderColor(getFrameSide(), true);
setRect(getPieFrame(), new Rectangle(-15000 -4000 18000 18000));
setPlace(false);

There is still a big box around the pie chart, but i can position the pie chart nicely to the left so it doesn't really matter.

Thanks


WF 8.0.0.5M
July 07, 2006, 02:57 AM
kalyanswarna
Hi jodye,

by using this API
setRect(getPieFrame(), new Rectangle(&x,&y,&w,&h));
we will reduce the whiteSpace around the Graph.

you can set these x,y,width and height as per your graph size.

Thanks,
Kalyan.S


Thanks,
Kalyan.S
------------------------------------
WebFOCUS 7.1.4, Win XP SP2,
Oracle8i.
------------------------------------