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.



Read-Only Read-Only Topic
Go
Search
Notify
Tools
Center Graph Title
 Login/Join
 
Virtuoso
posted
Anyone know how to center a Graph Title?

setTitleString("Hourly Call Volume");
setTextJustHoriz(gettitle(),0);
setFontSize(getTitle(),18);
setFontSizeAbsolute(getTitle(),true);

Something to add to this?


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
Prarie,

Haven't used graphs in a while, but I pulled this snippit from a fex:

-* ---------- Graph Styling -----------
ON GRAPH SET GRAPHSTYLE *

-* Graph title
setTitleString("&TITLE");

-* Center the title
setTextJustHoriz(getTitle(),1);


Hope it's what you're looking for.

Regards,
Sean


------------------------------------------------------------------------
PROD: WebFOCUS 7.6.2 on Unix AIX/Tomcat/Servlet Mode
TEST: WebFOCUS 7.6.2 on Unix AIX/Tomcat/Servlet Mode
 
Posts: 210 | Location: Ottawa | Registered: November 03, 2005Report This Post
Virtuoso
posted Hide Post
That was it! Thanks so much. Smiler


In Focus since 1993. WebFOCUS 7.7.03 Win 2003
 
Posts: 1903 | Location: San Antonio | Registered: February 28, 2005Report This Post
Member
posted Hide Post
I need to set title in three lines
setTitleString("&HDR_LN1");
setTextJustHoriz(getTitle(),1);
setTitleString("&HDR_LN2");
setTextJustHoriz(getTitle(),2);
setTitleString("&HDR_LN3");
setTextJustHoriz(getTitle(),3);

Average Number of HealthChoice Medicaid Eligibles Per Month
Ordered by Age Group
Fiscal Year 2007-2011
Does any one know how to center them at the top of the graph?


7.7.03, Windows
 
Posts: 7 | Registered: April 24, 2012Report This Post
Expert
posted Hide Post
Try using "HEADING CENTER" or use the Graph Assistant or as stated above...
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Member
posted Hide Post
I have tried with heading center...it does not really work with 16X9 monitor...my client will like to see heading to be center to any type of monitor..I have found the previous code is very good for my first two lines...I mean text sting title and subtitle...however, I need to add third line..for which I don't know which code to use


7.7.03, Windows
 
Posts: 7 | Registered: April 24, 2012Report This Post
<JG>
posted
You can only have 1 title string.

It's java.

-SET   &TITLE = 'Title line 1 \n Title Line 2 \n Title line 3';
-* Graph title
setTitleString("&TITLE");
-* Center the title
setTextJustHoriz(getTitle(),1);


You can not justify individual lines.
 
Report This Post
Member
posted Hide Post
Thank you so much. This code really work.
-SET &HDR_LN1 = 'Average Number of ' | &HDR1 | ' Medicaid Eligibles Per Month';
-SET &DTE_LNE = &CFY_TTL | ' ' | &HDR_DTE ;
-*
-SET &HDR_LN3 = IF &TOTFLG EQ '1' THEN ' ' ELSE &DTE_LNE ;
-*
-SET &HDR_LN2 = IF &TOTFLG EQ '1' THEN &DTE_LNE
- ELSE ('Ordered by ' | &HDRV );
-SET &TITLE = '&HDR_LN1.EVAL \n &HDR_LN2.EVAL \n &HDR_LN3.EVAL';



setTitleString("&TITLE");

setTextJustHoriz(getTitle(),1);


7.7.03, Windows
 
Posts: 7 | Registered: April 24, 2012Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic


Copyright © 1996-2020 Information Builders