I'm trying to move my graph to the left in html. The legend is getting cut off when the report prints. I have tried playing with the setRect command but it doesn't budge the graph at all. Any suggestions? I've also tried set vaxis and set haxis and that causes me to get no graph at all. Removing the setPlace(true) at least made the legend a little smaller, but it still does not fit on a portrait page. I'm fairly new to html ... I'm more accustomed to pdf which is working just fine. Thanks.
Here is the code to create the graph:
SET LOOKGRAPH=PIE
SET 3D=OFF
GRAPH FILE HOLD220
SUM PCT_MKT_VL AS ""
BY SEC_GRP_NM
WHERE MKT_VL IS-NOT MISSING AND MKT_VL GT 0 AND PCT_MKT_VL GE 1
ON GRAPH SET GRAPHEDIT SERVER
ON GRAPH SET GRAPHSTYLE *
setTitleString("Asset Allocation");
setTextJustHoriz(getTitle(),1);
setLegendTextAutofit(true);
setFontSizeAbsolute(getLegendText(),true);
-*setRect(getFrame(),new Rectangle(-12000,-8000,21000,18000));
setRect(getFrame(),new Rectangle(-24000,-12000,21000,18000));
setRiserBorderMode(1);
setSeriesDefaultTransparentBorderColor(false);
setUseSeriesBorderDefaults(true);
setFillMissingData(0);
setLegendPosition(2);
-*setPlace(true);
ENDSTYLE
ON GRAPH HOLD AS GRAPH1 FORMAT HTMTABLE
END
This is the commands that display everything:
-HTMLFORM BEGIN
< !DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
Trust Portfolio Report<script>
var finished = false;
function finishedLoading(){
finished = true;
}
!IBI.FIL.HEADER1;
!IBI.FIL.GRAPH1;
!IBI.FIL.TABLE1;
-HTMLFORM END
webfocus 8.105M; os: windows; pdf, html, exl2k, csv