i have mocked the code to CAR file. I Appreciate your quick response
TABLE FILE CAR
PRINT *
ON TABLE NOTOTAL
ON TABLE SET PAGE-NUM OFF
ON TABLE HOLD AS HOLD_1
END
-RUN
-IF &RECORDS EQ 0 THEN GOTO NO_DATA;
-SET &RECORD_CNT = &RECORDS ;
-*-**********************************************************************************************
COMPOUND LAYOUT PCHOLD FORMAT PDF
UNITS=IN, $
SECTION=section1, LAYOUT=ON, METADATA='0.5^0.5^0.5^0.5^4', MERGE=ON, ORIENTATION=LANDSCAPE, PAGESIZE=C, SHOW_GLOBALFILTER=OFF, $
PAGELAYOUT=1, NAME='Page layout 1', text='Page layout 1', TOC-LEVEL=1, BOTTOMMARGIN=0.5, TOPMARGIN=0.5, METADATA='BOTTOMMARGIN=0.5,TOPMARGIN=0.5,LEFTMARGIN=0,RIGHTMARGIN=0,', $
COMPONENT='report2', TEXT='report2', TOC-LEVEL=2, POSITION=(0 3), DIMENSION=(2.5 2), METADATA='HEIGHT: 2.292in; WIDTH: 6.25in; POSITION: absolute; LEFT: 0.833in; Z-INDEX: 100; TOP: 0.729in', $
END
SET COMPONENT='report2'
DEFINE FILE HOLD_1
TITLE/A30='GDO';
VALUE/D12.4 = SEATS;
END
TABLE FILE HOLD_1
PRINT
TITLE
VALUE
BY COUNTRY
ON TABLE HOLD AS LOSTHLD
END
DEFINE FILE HOLD_1
TITLE/A30='Unserved';
VALUE/D12.4 = DEALER_COST;
END
TABLE FILE HOLD_1
PRINT
TITLE
VALUE
BY COUNTRY
ON TABLE HOLD AS CANHLD
END
DEFINE FILE HOLD_1
TITLE/A30='Basebus';
VALUE/D12.4 = RETAIL_COST;
END
TABLE FILE HOLD_1
PRINT
TITLE
VALUE
BY COUNTRY
ON TABLE HOLD AS WONHLD
MORE
FILE LOSTHLD
MORE
FILE CANHLD
END
-*SET LOOKGRAPH=PIE
GRAPH FILE WONHLD
SUM
VALUE AS ''
BY COUNTRY NOPRINT
BY TITLE
-*BY CREATERULESEED NOPRINT
ON GRAPH HOLD AS HOLD FORMAT SVG
ON GRAPH SET HTMLENCODE ON
ON GRAPH SET GRAPHDEFAULT OFF
ON GRAPH SET VZERO OFF
ON GRAPH SET HAXIS 450
ON GRAPH SET VAXIS 250
ON GRAPH SET UNITS PIXELS
ON GRAPH SET LOOKGRAPH PIE
ON GRAPH SET GRMERGE ADVANCED
ON GRAPH SET GRMULTIGRAPH 1
ON GRAPH SET GRLEGEND 0
ON GRAPH SET GRXAXIS 1
ON GRAPH SET STYLE *
*GRAPH_SCRIPT
setTemplateFile("/images/tdg/template/IBITrueColors.txt");
setReportParsingErrors(false);
setSelectionEnableMove(false);
setMarkerSizeDefault(50);
setTransparentBorderColor(getChartBackground(),true);
setLegendDisplay(false);
setPlace(true);
setDisplay(getY1Title(),true);
setDisplay(getO1Title(),true);
setDepthRadius(0);
setDepthAngle(0);
setLegendPosition(1);
setTextJustHoriz(getLegendText(),1);
setPlaceResize(getLegendArea(),false);
setDisplay(getY1MajorGrid(),true);
setDisplay(getO1MajorGrid(),false);
setTransparentBorderColor(getSeries(0),true);
setTransparentBorderColor(getSeries(1),true);
setTransparentBorderColor(getSeries(2),true);
setTransparentBorderColor(getSeries(3),true);
setFontName(getLegendText(),"Arial Unicode MS");
setFontSizeAbsolute(getLegendText(),true);
setFontSizeInPoints(getLegendText(),20);
setPlaceResize(getLegendText(),0);
setFontStyle(getLegendText(),0);
setFontName(getO1Label(),"Arial Unicode MS");
setFontSizeAbsolute(getO1Label(),true);
setFontSizeInPoints(getO1Label(),20);
setPlaceResize(getO1Label(),0);
setFillColor(getO1Label(),new Color(51,51,51));
setFontName(getY1Label(),"Arial Unicode MS");
setFontSizeAbsolute(getY1Label(),true);
setFontSizeInPoints(getY1Label(),20);
setPlaceResize(getY1Label(),0);
setFillColor(getY1Label(),new Color(51,51,51));
setFillColor(getSeries(0),new Color(155,37,131));
setFillColor(getSeries(1),new Color(40,149,213));
setFillColor(getSeries(2),new Color(112,83,170));
setFillColor(getSeries(3),new Color(126,191,230));
setY1AxisSide(0);
setBorderColor(getFrame(),new Color(192,192,192));
setTextFormatPattern(getY1Label(),"##.##");
setTextRotation(getO1Label(),0);
setScaleMinAuto(getY1Axis(),false);
setTextFormatPreset(getY1Label(),-1);
setTextFormatPreset(getDataText(),4);
setPlaceResize(getY1Label(),0);
setPlaceResize(getTitle(),0);
setPlaceResize(getSubtitle(),0);
setTextString(getTitle(),"WALLET SHARE");
setDisplay(getTitle(),true);
setFontStyle(getTitle(),0);
setFontName(getTitle(),'Arial Unicode MS');
setFontSizeAbsolute(getTitle(), true);
setFontSizeInPoints(getTitle(), 20);
setFillColor(getTitle(),new Color(0,0,0));
setDisplay(getSubtitle(),true);
setFontStyle(getSubtitle(),0);
setFontName(getSubtitle(),'Arial Unicode MS');
setFontSizeInPoints(getSubtitle(), 20);
setDisplay(getY1MinorGrid(),true);
setBorderColor(getY1MinorGrid(),new Color(192,192,192));
setPieFeelerTextFormat (1);
getPieSliceLabel(true);
setPieFeelerTextDisplay(4);
setPieLabelDisplay(0);
setLegendDisplay(true);
-*newly added
setTextFormatPreset(getPieSliceLabel(),20);
setFontName(getPieSliceLabel(),"Arial Unicode MS");
setFontSizeAbsolute(getPieSliceLabel(),true);
setFontSizeInPoints(getPieSliceLabel(),20);
setPlaceResize(getPieSliceLabel(),0);
setPieFeelerTextDisplay(3);
setPieLabelDisplay(1);
setFontStyle(getPieSliceLabel(),2);
setPieDepth(40);
setPieTilt(15);
setTextFormatPreset(getPieSliceLabel(),-1);
setTextFormatPattern(getPieSliceLabel(),"###,###,###%");
setFillColor(getLegendArea(),new Color(243,243,243));
setFillColor(getFrame(),new Color(229,229,229));
setTextFormatPreset(getDataText(),-1);
setTextFormatPattern(getDataText(),"###,###,###,###");
setTextFormatPreset(getDataText(),0);
setPieFeelerTextDisplay(1);
setLineBasicStrokeType(getPieFeelerLine(),11);
setBorderColor(getPieFeelerLine(),new Color(178,178,178));
setFillColor(getPieSliceLabel(),new Color(51,51,51));
setFillColor(getSubtitle(),new Color(51,51,51));
setFillColor(getChartBackground(),new Color(243,243,243));
setFillColor(getLegendText(),new Color(51,51,51));
setO1TitleDisplay(false);
setY1TitleDisplay(false);
setTitleDisplay(false);
setY1LabelDisplay(false);
setX1TitleDisplay(false);
setPieBarLabelDisplay(false);
*END
ENDSTYLE
END
-RUN
TABLE FILE HOLD_1
SUM
DEALER_COST NOPRINT
COMPUTE CNTR/I4 = CNTR + 1; NOPRINT
COMPUTE CNTR2/A4 = IF &FOCGRAPHCNT EQ 1 THEN ' ' ELSE FTOA(CNTR-1,'(F4)','A4'); NOPRINT
COMPUTE IMG/A16 = IF SEATS EQ 0 AND DEALER_COST EQ 0 AND RETAIL_COST EQ 0 THEN '' ELSE 'HOLD'||LJUST(4,CNTR2,'A4')|| '.svg'; NOPRINT
BY COUNTRY NOPRINT
HEADING
"Wallet Share"
""
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET STYLE *
TYPE=REPORT, GRID=OFF, BORDER=OFF, $
TYPE=HEADING, IMAGE=(IMG), POSITION=(0 0), DIMENSION=(2.5 2), $
TYPE=HEADING, FONT=Arial, SIZE=10, STYLE=BOLD, JUSTIFY=CENTER, $
ENDSTYLE
END
-RUN
COMPOUND END
-EXIT
WebFOCUS 7703
Excel, PDF, HTML, AHTML, APDF