Focal Point
[CLOSED] Displaying + symbol part of the pie legend

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

January 31, 2011, 02:05 PM
krishkasi
[CLOSED] Displaying + symbol part of the pie legend
Hi,
I need to display "+" symbol part of the pie graph legend. But it is not displayed. Please let me know if you have faced similar issues before and found a work around.

Attaching below sample code.

 
DEFINE FILE CAR
CTRY/A50 = IF COUNTRY EQ 'ENGLAND' THEN 'ENGLAND + PLUS' ELSE COUNTRY;
END
-RUN
GRAPH FILE CAR
SUM SEAT AS ''
ACROSS CTRY
ON GRAPH SET LOOKGRAPH PIEMULTI
ON GRAPH SET GRAPHEDIT SERVER
ON GRAPH SET 3D OFF
ON GRAPH SET VZERO ON
ON GRAPH SET GRID ON
ON GRAPH SET VAXIS 3.94
ON GRAPH SET HAXIS 5.25
ON GRAPH HOLD AS HOLD FORMAT SVG
ON GRAPH SET GRAPHSTYLE *
setRect(getPieFrame(),new Rectangle(-17000,-13400,19000,24000));
setPlace(false);
setSeriesDefaultTransparentBorderColor(true);
setUseSeriesBorderDefaults(true);

setPieTilt(0);
setFillColor(getSeries(0),new Color(207,244,247));
setAxisAssignment(getSeries(1),0);
setFillColor(getSeries(1),new Color(224,224,0));
setAxisAssignment(getSeries(2),0);
setFillColor(getSeries(2),new Color(160,160,255));
setAxisAssignment(getSeries(3),0);
setFillColor(getSeries(3),new Color(0,224,0));
setAxisAssignment(getSeries(4),0);
setFillColor(getSeries(4),new Color(255,32,32));

setFontSizeAbsolute(getY1Title(),true);
setFontSizeAbsolute(getY1Label(),true);
setFontSizeAbsolute(getY2Title(),true);
setFontSizeAbsolute(getY2Label(),true);
setFontSizeAbsolute(getO1Title(),true);
setFontSizeAbsolute(getO1Label(),true);
setPieRotate(15);
setFontSizeAbsolute(getPieSliceLabel(), true);
setFontSizeInPoints(getPieSliceLabel(), 10);
setFillType(getColorByHeight(),2);
-*
setPieFeelerTextDisplay(2);
setPieFeelerTextFormat(2);
setPieSorting(3);
-*
setMarkerDisplay(true);
setConnectLineMarkers(true);
setConnectScatterMarkers(true);
setO1LabelDisplay(true);
setO1AxisSide(0);
setO1MajorGridDisplay(true);
setO1MajorGridStyle(0);
setO1MinorGridDisplay(false);
setAxisAssignment(0,0);
setY1LabelDisplay(true);
setY1AxisSide(0);
setY1MajorGridDisplay(true);
setY1MajorGridStyle(0);
setY1MinorGridDisplay(false);
setTextFormatPreset(getY1Label(),-1);
setTextFormatPattern(getY1Label(),"#.##");

setFillColor(getSeries(0),new Color(097,120,175));
setFillColor(getSeries(1),new Color(163,088,107));
setFillColor(getSeries(2),new Color(117,174,108));
setFillColor(getSeries(3),new Color(119,079,136));
setFillColor(getSeries(4),new Color(101,149,171));
setFillColor(getSeries(5),new Color(201,134,101));
-*
setPlaceResize(getPieSliceLabel(),0);
-*
setPieLabelDisplay(1);
setTextFormatPreset(getPieSliceLabel(),2);
-*
setLegendDisplay(true);
setLegendAutomatic(false);
setLegendMarkerPosition(0);
setLegendPosition(2);
setLegendTextAutofit(false);
setMarkerShape(getLegendMarker(),3);
setLegendOrient(0);
setLegendRect(new Rectangle(8000,-14000,16000,9000));
setFontSizeAbsolute(getLegendText(), true);
setFontName(getLegendText(), "Arial");
setFontSizeInPoints(getLegendText(), 10);
ENDSTYLE
ON GRAPH SET STYLE *
PAGESIZE='A4',
LEFTMARGIN=0.10000,
RIGHTMARGIN=0.10000,
TOPMARGIN=0.10000,
BOTTOMMARGIN=0.10000,
SQUEEZE=ON,
ORIENTATION=PORTRAIT,
$
TYPE=REPORT,
GRID=OFF,
FONT='ARIAL',
SIZE=10,
BACKCOLOR='NONE',
STYLE=NORMAL,
$
ENDSTYLE
END
-RUN
TABLE FILE CAR
PRINT
COUNTRY NOPRINT
WHERE RECORDLIMIT EQ 1
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET STYLE *
TYPE=REPORT, IMAGE=HOLD.SVG, POSITION=(0.15 4.60), $
ENDSTYLE
END

This message has been edited. Last edited by: Kerry,


Regards,
Kasi Krishnan
WF 7.1.4 & WF 7.6.9: Databases - DB2, SQL Server 2000.
OS: Windows & AIX
January 31, 2011, 03:58 PM
Waz
This certainly looks like a bug.

Other characters that do wierd things are ^|"

I would strongly suggest putting in a case with IBI.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

February 01, 2011, 06:32 AM
<JG>
Works fine in 7.7.0.1
February 01, 2011, 12:34 PM
M Meagher
Works in 7.7.0.2 also.
February 01, 2011, 04:08 PM
Waz
Time to upgrade ?
Smiler


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

February 02, 2011, 01:36 PM
Doug
The "ENGLAND + PLUS" displays in the legend in 7.6.10 as well.

Will IB backtrack to 7.1.4 to "fix" this? Hmmm... "Time to upgrade ?"