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     Pie Chart Feeler lines and labels

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Pie Chart Feeler lines and labels
 Login/Join
 
Platinum Member
posted
I have a pie chart with feeler lines and labels and %'s. When the label gets long the feeler lines go into the center of the label and the label gets written into the pie chart. The only solution I've found is to rotate the pie chart.

setPieRotate(75);

Is there a way to automaticly rotate the chart or a way to split a label onto 2 lines in a pie chart. Right now when I see this problem I have to go in and change the value in the rotate.

Thanks,

Lenny


(Production: WebFOCUS 7.1.3 on Win 2K/IIS 6/CGI)
(Test: WebFOCUS 7.1.3 on Win 2K/IIS 6/CGI)
 
Posts: 104 | Location: Boston | Registered: April 23, 2003Report This Post
Virtuoso
posted Hide Post
If you try this...it puts the labels outside of the pie...would that help?

setPieFeelerTextDisplay(1);


In Focus since 1993. WebFOCUS 7.7.03 Win 2003
 
Posts: 1903 | Location: San Antonio | Registered: February 28, 2005Report This Post
Platinum Member
posted Hide Post
The labels are appearing outside now.

Here is my focus code.

Lenny

GRAPH FILE BMKWGHTRPT
SUM RPTVALUEPCT AS ''
ACROSS RPTDESC

COLUMNS 'Continental Europe'
AND 'UK'
AND 'Pacific Basin'
AND 'Japan'
AND 'Emerging Markets'


ON GRAPH SET GRAPHSERVURL &&GRAPHSERVER
ON GRAPH SET GRAPHEDIT ON

ON GRAPH SET LOOKGRAPH PIE

ON GRAPH SET VAXIS 4.50
ON GRAPH SET HAXIS 5.25

ON GRAPH HOLD AS RIGHGR1 FORMAT SVG

ON GRAPH SET GRAPHSTYLE *
setGraphType(59);


-* Graph Frame Information ==================================================

setRect(getPieFrame(),new Rectangle(-15000,-10000,30000,22000));



setPieDepth(0);

-* set chart hight
setPieTilt(5);

-* Rotate so that feelers display correctly
setPieRotate(90);


-* Legend Information ==================================================

setLegendDisplay(false);


-* Pie Label Information ==================================================

setFontName(getPieSliceLabel(),"Arial");


setFontSizeAbsolute(getPieSliceLabel(),true);
setFontSize(getPieSliceLabel(),12);

-* 0-normal,1-italic, 2-bold, 3-italic/bold, 4-underline, 5-italic/underline
setFontStyle(getPieSliceLabel(),0);

-* 0 - Left
-* 1 - Center
-* 2 - Tight
setTextJustHoriz(getPieSliceLabel(1),2);

setPieSliceLabelWrap(true);



-* display WITH feeler lines
setPieFeelerTextDisplay(1);

-* 0 = use series label
-* 1 = % of slice
-* 2 = series label
-* 3 = series label and % of slice
setPieLabelDisplay(3);

setPieFeelerTextFormat(-1);
setPieFeelerTextFormatPattern("#0.0%");

setFillColor(getSeries(0),new Color(192,192,192));
setFillColor(getSeries(1),new Color(040,096,023));
setFillColor(getSeries(2),new Color(179,226,225));
setFillColor(getSeries(3),new Color(000,051,101));
setFillColor(getSeries(4),new Color(145,134,191));
setFillColor(getSeries(5),new Color(240,106,000));
setFillColor(getSeries(6),new Color(254,209,113));

-* Use White border around slice
setUseSeriesBorderDefaults(true);
setSeriesDefaultBorderColor(new Color(255,255,255));

ENDSTYLE

END


(Production: WebFOCUS 7.1.3 on Win 2K/IIS 6/CGI)
(Test: WebFOCUS 7.1.3 on Win 2K/IIS 6/CGI)
 
Posts: 104 | Location: Boston | Registered: April 23, 2003Report This Post
Gold member
posted Hide Post
I didn't see it in your code, but do you have autoplacement turned on?

This line of code would go before the WebFOCUS style sheet.

setPlace(true);

I don't know if it will help - but worth a try if it's not already there.
 
Posts: 55 | Registered: May 22, 2003Report 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     Pie Chart Feeler lines and labels

Copyright © 1996-2020 Information Builders