[CLOSED] Legend Text is Going Out of Border in PDF
I have attached an Image, i have a Grid and Graph Report in PDF, The Graph hold file is stored in SVG Format.You can see in the image, the Legend Text is long and is going out of Border, i need to contain the same text within the border. ------Code Below------ GRAPH FILE OPENSR SUM 0_10_DAYS AS ' 0-10 Working Days' 11_20_DAYS AS '11-20 Working Days' 21_30_DAYS AS '21-30 Working Days' 31_40_DAYS AS '31-40 Working Days' GT_40_DAYS AS '>40 Working Days' BY MONTH NOPRINT BY MONTH_DESC AS 'Month' &SHOWHTML ON GRAPH HOLD AS OPEN_SR_BAR FORMAT HTMTABLE &HIDEHTML ON GRAPH HOLD AS OPEN_SR_BAR FORMAT SVG ON GRAPH SET GRAPHDEFAULT OFF ON GRAPH SET VZERO OFF ON GRAPH SET HAXIS 650 ON GRAPH SET VAXIS 360 ON GRAPH SET UNITS PIXELS ON GRAPH SET LOOKGRAPH VBRSTK1 ON GRAPH SET GRMERGE ADVANCED ON GRAPH SET GRMULTIGRAPH 0 ON GRAPH SET GRLEGEND 0 ON GRAPH SET GRXAXIS 2 ON GRAPH SET GRAPHSTYLE * setTemplateFile("/images/tdg/template/IBISouthWestern.txt"); setReportParsingErrors(false); setSelectionEnableMove(false); setTransparentBorderColor(getSeries(0),true); setTransparentBorderColor(getSeries(1),true); setTransparentBorderColor(getSeries(2),true); setTransparentBorderColor(getSeries(3),true); setTransparentBorderColor(getSeries(4),true); setTransparentBorderColor(getSeries(5),true); setTransparentBorderColor(getSeries(6),true); setTransparentBorderColor(getSeries(7),true); setTransparentBorderColor(getSeries(8),true); setTransparentBorderColor(getSeries(9),true); setTransparentBorderColor(getSeries(10),true); setTransparentBorderColor(getChartBackground(),true); setBorderColor(getChartBackground(),new Color(192,192,192)); setPlace(true); setLineWidthAllSeries(2); setSeriesLineWidthDefault(2); setBorderColor(getFrame(),new Color(192,192,192)); setShadowColor(getFrame(),new Color(192,192,192)); setBorderColor(getY1ZeroLine(),new Color(192,192,192)); setFillColor(getY1ZeroLine(),new Color(192,192,192)); setBorderColor(getY1AxisLine(),new Color(192,192,192)); setBorderColor(getO1AxisLine(),new Color(192,192,192)); setFillColor(getSeries(0),new Color(70,130,180)); setFillColor(getSeries(1),new Color(205,92,92)); setFillColor(getY1MajorGrid(),new Color(192,192,192)); setLineWidth(getY1MajorGrid(),0); setDisplay(getReferenceLineY1(0),false); setFillColor(getO1MajorGrid(),new Color(192,192,192)); setLineWidth(getO1MajorGrid(),1); setGridStyle(getO1MajorGrid(),3); setGridStyle(getY1MajorGrid(),0); setBorderColor(getY1MajorGrid(),new Color(192,192,192)); setFontSizeAbsolute(getTitle(), true); setFontSizeInPoints(getTitle(), 9); setPlaceResize(getTitle(), 0); setDepthRadius(5); setDisplay(getLegendArea(),true); setLegendPosition(2); setFontName(getO1Label(),"San Serif"); setFontSizeAbsolute(getO1Label(), true); setFontSizeInPoints(getO1Label(), 8); setTextRotation(getO1Label(),1); setFontName(getY1Label(),"Calibri"); setFontSizeInPoints(getY1Label(), 8); setRiserWidth(5); setFontName(getLegendText(),"Calibri"); setFontSizeAbsolute(getLegendText(), true); setFontSizeInPoints(getLegendText(), 6); setPlaceResize(getLegendText(), 0); setFontName(getY1Label(),"Calibri"); setFontSizeAbsolute(getY1Label(), true); setFontSizeInPoints(getY1Label(), 8); setPlaceResize(getY1Label(), 0); setLegendReverse(true); setBorderColor(getNestedO1LabelLine(),new Color(255,255,255)); setDataTextPosition(4); setFontSizeAbsolute(getDataText(0), true); setFontSizeInPoints(getDataText(0), 7); setPlaceResize(getDataText(0), 0); setDataTextDisplay (true); setStackedDataValueSum(false);
ENDSTYLE END
This message has been edited. Last edited by: <Kathryn Henning>,
Webfocus 8105,8808,7703,7611, EXL2K,HTML,PDF,COMT,AHTML Info Assist+ , Reportcaster
July 01, 2015, 07:48 PM
<Kathryn Henning>
Hi iBeny,
This post appears to be a duplicate of Graph Legend Going Out Of Bounds, and since there are replies in that topic, we'll work from that one.