Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Piechart - Showing as line instead of circle

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Piechart - Showing as line instead of circle
 Login/Join
 
Silver Member
posted
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
 
Posts: 33 | Registered: July 31, 2008Report This Post
Expert
posted Hide Post
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.
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Silver Member
posted Hide Post
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
 
Posts: 33 | Registered: July 31, 2008Report This Post
Gold member
posted Hide Post
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
 
Posts: 63 | Registered: January 12, 2011Report This Post
Gold member
posted Hide Post
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
 
Posts: 63 | Registered: January 12, 2011Report This Post
Silver Member
posted Hide Post
SriAravind, iam getting the graph as below. Iam using 7.6.9 version. Is it because of the version?


Webfocus 8002M, 8009
OS: Windows7
 
Posts: 33 | Registered: July 31, 2008Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Piechart - Showing as line instead of circle

Copyright © 1996-2020 Information Builders