Focal Point
add space between Pie graph title and pie chart filler text

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

February 15, 2008, 12:19 PM
yogi
add space between Pie graph title and pie chart filler text
Hello

How do we add space between Pie graph titles and pie lables filler text+Line? Sometimes there is very little space or other times Pie lable tex gets mixed with graph title.


PieFeelerTextDisplay - In case if try you to add Pie Filler Text only still text will merge with title. if u select filler on Pie then it will be clutter on graph and nothing can be seen.

rotating graph does not guarantee that filler text or line will not merge with title when some different selection criteria is selected.


How can we add 1 or 2 lines blank space between pie chart and subtile or reduce length of pie chart lable arrows?

Thanks,


Here is simple code witrh CAR file

GRAPH FILE CAR
PRINT RC AS ''
ACROSS COUNTRY AS 'Derate '
ON GRAPH PCHOLD AS HOLD FORMAT PNG
ON GRAPH SET GRMULTIGRAPH 0
ON GRAPH SET GRLEGEND 1
ON GRAPH SET GRXAXIS 0
ON GRAPH SET 3D ON
ON GRAPH SET HAXIS 720
ON GRAPH SET VAXIS 405
ON GRAPH SET UNITS PIXELS
ON GRAPH SET LOOKGRAPH PIESINGL
ON GRAPH SET GRAPHSTYLE *
setTemplateFile("/images/tdg/template/IBISouthWestern.txt");
setReportParsingErrors(false);
setSelectionEnableMove(false);
setPieDepth(40);
setPieFeelerTextDisplay(1);
setPlace(true);
setTextString(getTitle(),"PIE TITLE");
setDisplay(getTitle(),true);
setTextString(getSubtitle(),"THIS IS A LONG PIE SUBHEADING TO TEST FILLER T");
setDisplay(getSubtitle(),true);
setTextFormatPreset(getPieSliceLabel(),6);
setMarkerShape(getLegendLabelMarker(0),1);
setLegendTextAutosize(true);
setTextString(getAnnotation(0),"");
setDisplay(getAnnotation(0),false);
setFillColor(getChartBackground(),new Color(255,255,255));
setTransparentBorderColor(getChartBackground(),true);
restoreAllSlices();
setLegendPosition(10);
setPieLabelDisplay(6);
ENDSTYLE
ON GRAPH SET STYLE *
TYPE=DATA, ACROSSCOLUMN=N1, TARGET='_BLANK', $
ENDSTYLE
END
February 15, 2008, 04:00 PM
Prarie
To add a second line in a SubTitle you - you add \n plus the text...I can't seem to make it be a blank.
Change the line to the following and you at least get it to move with a period. I'm sure someone knows how to make it a blank.

setTextString(getSubtitle(),"THIS IS A LONG PIE SUBHEADING TO TEST FILLER T\n .");


In Focus since 1993. WebFOCUS 7.7.03 Win 2003
Thnaks a lot Prarie. THis is a great solution. Smiler
Another approach I took was adding Tilt to Pie.

But adding \n is good option.


Thanks again.
It was a thought...Surely Roll Eyes there is a wayyyy


In Focus since 1993. WebFOCUS 7.7.03 Win 2003
I haven't found a way yet but this was a nice solution. To get a blank space to appear instead of the period I just double up on \n :

  setTitleString("International RE Portfolio Composition by Country (%) \n \n "); 


For every one line of extra space you want just use \n \n


______________________
WF Version: Prod/Test : WebFOCUS 7.67; ETL 7.67

OP system: WIN2K