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.

New TIBCO Community Coming Soon
In early summer, TIBCO plans to launch a new community—with a new user experience, enhanced search, and expanded capabilities for member engagement with answers and discussions! In advance of that, the current myibi community will be retired on April 30. We will continue to provide updates here on both the retirement of myibi and the new community launch.

What You Need to Know about Our New Community
We value the wealth of knowledge and engagement shared by community members and hope the new community will continue cultivating networking, knowledge sharing, and discussion.

During the transition period, from April 20th until the new community is launched this summer, myibi users should access the TIBCO WebFOCUS page to engage.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Pie Graph PDF Legend Text Font Size 10 version 7.6.9

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Pie Graph PDF Legend Text Font Size 10 version 7.6.9
 Login/Join
 
Silver Member
posted
Hi,
The font size of the Legendtext in the Pie Graph of a PDF report should be 10. But even, specified in the below code of the graph as 10 , it is not displaying the font size as 10.Instead the legendtext is displayed as 10.5

Anyone, please suggest how to get the font size of 10 Legendtext in the Pie Graph?



Code:

setLegendMarkerPosition(0);
setLegendPosition(2);
setLegendTextAutofit(false);
setMarkerShape(getLegendMarker(),3);
setLegendAutomatic(false);
setLegendOrient(0);
setLegendRect(new Rectangle(8000,-14000,16000,9000));
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(getPieSliceLabel(), true);
setFontSizeInPoints(getPieSliceLabel(), 10);

setFillType(getColorByHeight(),2);
setRect(getPieFrame(),new Rectangle(-17000,-13400,19000,24000));
setPlace(false);
setSeriesDefaultTransparentBorderColor(true);
setUseSeriesBorderDefaults(true);
-*
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(),"#.##");
-*
setPieFeelerTextDisplay(2);
setPieFeelerTextFormat(2);
setPieSorting(3);
-*
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);
setFontSizeAbsolute(getLegendText(), true);
setFontSizeInPoints(getLegendText(), 10);
setLegendTextAutofit(true);
setFontSizeAbsolute(getY1Title(),true);
setFontSizeAbsolute(getY1Label(),true);
setFontSizeAbsolute(getY2Title(),true);
setFontSizeAbsolute(getY2Label(),true);
setFontSizeAbsolute(getO1Title(),true);
setFontSizeAbsolute(getO1Label(),true);
setPieRotate(15);

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


WebFOCUS 7.6.x
Windows
Output: Excel,PDF, HTML
 
Posts: 42 | Registered: September 28, 2007Report This Post
Expert
posted Hide Post
And, what Font do you want use??? I "always" designate the font:

setFontName(getDataText(),"Verdana");


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
 
Posts: 1972 | Location: Centennial, CO | Registered: January 31, 2006Report This Post
Gold member
posted Hide Post
Am also facing the same issue for one of my Pie graphs in 769. Am trying to capture the output as SVG and displaying it in the report.

I set the font also to Arial as follows

  
setFontSizeAbsolute(getLegendText(), true);
setFontName(getLegendText(), "Arial");
setFontSizeInPoints(getLegendText(), 10);

Even after that it showed the labels with font size as 10.5 instead of 10.

Other alternate I tried was as follows
 
setFontSizeAbsolute(getLegendText(), false);
setFontName(getLegendText(), "Arial");
setFontSizeVC(getLegendText(), 1130);

Until the pint size 1129, the font size is 9. While setting it to 1130, font size turn to 10.5.


Regards,
Kasi Krishnan
WF 7.1.4 & WF 7.6.9: Databases - DB2, SQL Server 2000.
OS: Windows & AIX
 
Posts: 71 | Registered: November 20, 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     [CLOSED] Pie Graph PDF Legend Text Font Size 10 version 7.6.9

Copyright © 1996-2020 Information Builders