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     [SOLVED] Set Group label style and font for Pie Graph

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Set Group label style and font for Pie Graph
 Login/Join
 
Platinum Member
posted
Hi All,

Does anyone know how to set the font size/style for the group labels used in a pie graph - type 57. I'm plotting data across month/year for 6 months so I have 6 cute little pie graphs with the label (02/2010, 03/2010 etc.) underneath them but I cannot figure out how to style the label. I tried to no avail:

setFontSizeAbsolute(getGroupLabel(0),true);
setFontSize(getGroupLabel(0),9);
setFontStyle(getGroupLabel(0),1);
setFontName(getGroupLabel(0),"Arial Black");

But I can change the group label itself with:
setGroupLabel(0, "Norb");

Any ideas or is this not possible.

Thanks,

Norb

This message has been edited. Last edited by: Norb Eckert,


prod:7.6.9, win2k3 mre, caster, bid, devstudio 7.6.9
 
Posts: 242 | Location: Minneapolis | Registered: February 16, 2006Report This Post
Expert
posted Hide Post
There are many commands for graphing. Have you checked out the ThreedGraphics website. They supplied the graph engine. Also the WebFOCUS Graphics documentation.

You could try this command.
setAutofit(getGroupLabel(0),false);


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Expert
posted Hide Post
setFontSizeInPoints(getO1Label(),9);
setFontSizeInPoints(getY1Label(),9);
setFontSizeAbsolute(getLegendText(),true);
setFontStyle(getLegendText(),2);
setFontSizeInPoints(getLegendText(),9);


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
 
Posts: 1972 | Location: Centennial, CO | Registered: January 31, 2006Report This Post
Platinum Member
posted Hide Post
Thanks Tom,

This has no impact on the group label underneath the pie graph although the legend is indeed impacted. I'm trying to affect the group label that is displayed directly underneath the pie graph.

Norb


prod:7.6.9, win2k3 mre, caster, bid, devstudio 7.6.9
 
Posts: 242 | Location: Minneapolis | Registered: February 16, 2006Report This Post
Platinum Member
posted Hide Post
quote:
setAutofit(getGroupLabel(0),false);


Hi Waz,

"setAutoFit" was not liked at all:

Possible Error on: setAutoFit("05/2010",);

I'm stumped and am thinking I can't style the group label on a pie chart.

Thanks,

Norb


prod:7.6.9, win2k3 mre, caster, bid, devstudio 7.6.9
 
Posts: 242 | Location: Minneapolis | Registered: February 16, 2006Report This Post
Expert
posted Hide Post
Norb,

Use the CAR file and replicate. this is very doable...


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
 
Posts: 1972 | Location: Centennial, CO | Registered: January 31, 2006Report This Post
Platinum Member
posted Hide Post
Hi Tom,

Been busy for a few days but finally found the correct method in the API docs.

getPieLabel() - returns the id of the pie group labels and then they can be style using the normal API methods.

Thanks,

Norb

This message has been edited. Last edited by: Norb Eckert,


prod:7.6.9, win2k3 mre, caster, bid, devstudio 7.6.9
 
Posts: 242 | Location: Minneapolis | Registered: February 16, 2006Report 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     [SOLVED] Set Group label style and font for Pie Graph

Copyright © 1996-2020 Information Builders