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     changing the fontsize of X-AXIS labels in Graph

Read-Only Read-Only Topic
Go
Search
Notify
Tools
changing the fontsize of X-AXIS labels in Graph
 Login/Join
 
Member
posted
hai folks,
product: wf developer studio 5.3.2

Here i would like to change the font size of X-AXIS labels in my graph but i cannt and i can change the fontname,fontstyle of X-AXIS labels ,
the code which i used to change the fontsize is mentioned below,
setPlace(true);
setO1LabelDisplay(true);
setO1LabelRotate(1);
-*setFontName(getO1Label(),"ARIAL NARROW");
-*setFontStyle(getO1Label(),2);
-*setFontSizeAbsolute(getO1Label(), true);
-*setFontSizeInPoints(getO1Label(),55.0);
setFontSize(getO1Label(),12);
and I could change the font size of X-AXIS Labels with changing my graph width&hight sizes but I want same size.
if anyone could help me to solve this problem i do appreciate that
thank you.
 
Posts: 5 | Location: rochester | Registered: October 08, 2005Report This Post
Expert
posted Hide Post
Buddy,
setFontSize(getO1Label(),11);
setFontSizeAbsolute(getO1Label(),true);
works for me.
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report This Post
Virtuoso
posted Hide Post
You may also want to try turning off the AUTOFIT for the X-AXIS Labels:

setO1LabelAutofit(false);
 
Posts: 995 | Location: Gaithersburg, MD, USA | Registered: May 07, 2003Report This Post
Member
posted Hide Post
hai mickey and susannah
i tried both ur solutions but its not working
thank u anyway
if u have got any idea could help me plz
 
Posts: 5 | Location: rochester | Registered: October 08, 2005Report This Post
Virtuoso
posted Hide Post
Not sure if this will help but here are the API commands I have in a number of my graph requests. I use the VC setting to control the size of the labels.

I also have noticed that there are problems with various API graph commands from version to version. I have a few cases open with IBI due to Justification API commands not working with Y & X axis TITLES. You may be bumping into an issue as well since you are on 5.3.2.

***************************************
setTextJustHoriz(getO1Label(),1);
setO1LabelAutofit(false);
setFontSizeVC(getO1Label(),960);
setFontStyle(getO1Label(),0);
setFillColor(getO1Label(),new Color(0,0,0));
setTextRotation(getO1Label(),0);
setO1LabelStagger(false);
setO1LabelWrap(true);
***************************************
 
Posts: 995 | Location: Gaithersburg, MD, USA | Registered: May 07, 2003Report This Post
Virtuoso
posted Hide Post
Buddy, I did a little testing and it looks like the setPlace(true); is causing your Font setting to be ignored. Try setPlace(false); and run your request again. Of course you will need to add additional commands to size and position each element due to setPlace(false); but it should work.
 
Posts: 995 | Location: Gaithersburg, MD, USA | Registered: May 07, 2003Report This Post
Member
posted Hide Post
hai micky,
I put the ticket to IBI to solve that problem but they told me that we r researching on your ticket,it means that could be bug,
anyway thank u mickey for spending your time on me.
 
Posts: 5 | Location: rochester | Registered: October 08, 2005Report This Post
Expert
posted Hide Post
FYI,

This is not a bug. Below is the Symptom-Problem-Solution document for this case.

Question: Unable to change the font size in X-axis label http://techsupport.informationbuilders.com/sps/12922085.html


Glad to know the issue is resolved. Big Grin

Cheers,

Kerry
 
Posts: 1948 | Location: New York | Registered: November 16, 2004Report This Post
Virtuoso
posted Hide Post
ARGH!

Which one to use, Which one to use!!

setAutofit(getO1Label(), false);

OR

setO1LabelAutofit(false);

I would ask IBI about this.
 
Posts: 995 | Location: Gaithersburg, MD, USA | Registered: May 07, 2003Report This Post
Virtuoso
posted Hide Post
What tis the difference between these two commands?

setO1LabelAutofit(false); is found on page 4-171 of the WebFOCUS Graphics 5.3 Manual.

Page 5-146 of the same manual discusses setAutofit().

The funny thing here is that the notes on that page say:

"You may also use one of the object-specific properties to set the automatic fitting of an object (for example, FootnoteAutofit(), LegendTextAutofit(), O1LabelAutofit(), and so on)."

Notice it says you may use setO1LabelAutofit(false); instead.

I would consider this a bug if using setO1LabelAutofit(false); does not work.
 
Posts: 995 | Location: Gaithersburg, MD, USA | Registered: May 07, 2003Report This Post
Member
posted Hide Post
Mickey,

I would consider it a bug if setO1LabelAutofit(false); does not work also, but I believe it does work.

In any event, there are simply two APIs here that are capable of accomplishing the same thing. Ideally the API would be fully rationalized and polymorphic, but this is how it was built for whatever reasons, so this is how it will remain.

When we release the Betty project and everyone has a wonderful GUI editor, such concerns will fade into insignificance.

On the other point you made to Buddy about setPlace(true); preventing him from changing the font size. You are correct that changing the argument to 'false' will do the trick, but the Automatic Placement Engine can be finessed in a more granular fashion. There are several 'setPlace...' calls. One of them is setPlaceResize(). THis can be used to disallow the engine from resizing any object you wish to control manually. In Buddy's example, you'd use setPlaceResize(getO1Label(),0);

Hang in there everyone... Betty's coming!


Oh, I'm a Windows guy, but since I am in support, I interact with all versions and platforms.
 
Posts: 20 | Location: IBI Corporate HQ, NY | Registered: May 13, 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     changing the fontsize of X-AXIS labels in Graph

Copyright © 1996-2020 Information Builders