July 06, 2006, 03:15 PM
jodyeSpace 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
July 06, 2006, 05:43 PM
jodyeThis 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
July 07, 2006, 02:57 AM
kalyanswarnaHi 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