Focal Point
Piechart - Showing as line instead of circle

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

May 04, 2012, 12:35 PM
SureshKumar
Piechart - Showing as line instead of circle
Iam trying to display a piechart in PDF report. When the value of 1 series is more than 99%, it is displaying as a line instead of full circle.
Please advice if any method to be included to have it as a circle.
 TABLE FILE CAR
PRINT
COMPUTE CAR_MODEL/A20 = IF CAR NE 'DATSUN' THEN 'ALL OTHERS'
ELSE CAR;
COMPUTE CAR_COST/D15.2 = IF CAR NE 'DATSUN' THEN DEALER_COST
ELSE (DEALER_COST/100);
ON TABLE SET HOLDLIST PRINTONLY AND ASNAMES ON
ON TABLE HOLD AS CAR1
END
-RUN
TABLE FILE CAR1
SUM CAR_COST
BY CAR_MODEL
ON TABLE HOLD AS CAR2
END
-RUN
-*************************************************************
GRAPH FILE CAR2
SUM CAR_COST AS ''
ACROSS CAR_MODEL
ON GRAPH SET LOOKGRAPH PIEMULTI
ON GRAPH SET GRAPHEDIT SERVER
ON GRAPH SET BARNUMB OFF
ON GRAPH SET 3D OFF
ON GRAPH SET VZERO ON
ON GRAPH SET GRID ON
ON GRAPH SET VAXIS 3.16
ON GRAPH SET HAXIS 3.16
ON GRAPH HOLD AS GRAPH1 FORMAT SVG
ON GRAPH SET GRAPHSTYLE *
setLegendMarkerPosition(0);
setLegendPosition(1);
setLegendTextAutofit(false);
setMarkerShape(getLegendMarker(),3);
setLegendAutomatic(false);
setLegendOrient(0);
setLegendRect(new Rectangle(3000,-11500,12000,4000));
setPieTilt(0);
setFontSizeAbsolute(getPieSliceLabel(),true);
setFontSize(getPieSliceLabel(),10);
setFillType(getColorByHeight(),2);
setRect(getPieFrame(2),new Rectangle(-17500,-11000,24280,28000));
setSeriesDefaultTransparentBorderColor(true);
setUseSeriesBorderDefaults(true);
setPieFeelerTextDisplay(2);
setPieFeelerTextFormat(2);
setPieSorting(3);
setFillColor(getSeries(0),new Color(77,79,83));
setFillColor(getSeries(1),new Color(63,156,53));
setFillColor(getChartBackground(),new Color(173 175 175));
setPlaceResize(getPieSliceLabel(),0);
setFontSizeAbsolute(getLegendText(), true);
setFontSizeInPoints(getLegendText(), 8);
setPieLabelDisplay(1);
setTextFormatPreset(getPieSliceLabel(),2);
setLegendDisplay(true);
setLegendTextAutofit(true);
setPlace(false);
setPieRotate(0);
ENDSTYLE
END
-RUN
-******************************************************************
TABLE FILE CAR
PRINT
COMPUTE TEXT1/A100 = 'PIECHART'; AS ' '
BY MODEL NOPRINT
WHERE RECORDLIMIT EQ 1
ON TABLE SET PAGE-NUM OFF
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET STYLE *
UNITS=IN,
PAGESIZE='A4',
SQUEEZE=ON,
ORIENTATION=LANDSCAPE,
$
TYPE=REPORT, IMAGE=GRAPH1.SVG, POSITION=(0.29 4.15),SIZE=(5.51 2.98),$
TYPE=DATA, COLUMN=TEXT1,JUSTIFY=CENTER,STYLE=BOLD,SIZE=16,$
ENDSTYLE
END
-RUN
-EXIT 



Webfocus 8002M, 8009
OS: Windows7
May 04, 2012, 01:00 PM
Doug
Start with something as simple as this
     GRAPH FILE CAR
     SUM RETAIL_COST AS 'COST'
     BY MODEL
     ON GRAPH SET LOOKGRAPH PIEMULTI
     END
Then open it in the graph editor.
May 04, 2012, 04:57 PM
SureshKumar
Doug, The graph is fine when displayed whithout being saved. Iam trying to save it as a svg file here.


Webfocus 8002M, 8009
OS: Windows7
May 07, 2012, 05:11 AM
SriAravind
Suresh, on running ur code i'm not getting any line...its displaying the pie chart in full circle


WebFocus Version 7.7.05
Windows, HTML/PDF/EXL2K/AHTML
May 09, 2012, 06:59 AM
SriAravind
Hi Suresh.....See the below pie graph thats getting displayed on running ur code


Can anyone verify whether this is due to difference in WF version?

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


WebFocus Version 7.7.05
Windows, HTML/PDF/EXL2K/AHTML
May 14, 2012, 12:21 PM
SureshKumar
SriAravind, iam getting the graph as below. Iam using 7.6.9 version. Is it because of the version?



Webfocus 8002M, 8009
OS: Windows7