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] Graph Legend Wrap Length

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Graph Legend Wrap Length
 Login/Join
 
Platinum Member
posted
setTextWrap(getO1Label(),true);

This works great but it wraps at 7 characters. Is there any method to have it wrap at a specific length. 7 Characters is too short.

This message has been edited. Last edited by: Kerry,
 
Posts: 118 | Location: Wisconsin | Registered: January 16, 2008Report This Post
Expert
posted Hide Post
Laurie,

Would you please provide a sample of "what's wrong with my display"? Preferrably using the CAR file. There is a setRectangle(item) that should help.




   In FOCUS Since 1983 ~ from FOCUS to WebFOCUS.
   Current: WebFOCUS Administrator at FIS Worldpay | 8204, 8206
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
<JG>
posted
quote:
setTextWrap(getO1Label(),true);


You can also use setO1LabelWrap(true);

This has the same effect. Wraping is supposed to take place based on breaking at
a space, however if spaces are not available the I believe it breaks based on
available axis / number of labels to avoid overlap.

If you want to break in different location then you need to manually generate the labels
and embed \n into the string for example 'The cat\nsat on the mat'

displays as

The cat
sat on the mat

To see how to generate your own labels look at the following post

https://forums.informationbuilders.com/eve/forums/a/tpc/...1057331/m/3761048992
 
Report This Post
Platinum Member
posted Hide Post
I will try to create an example today. This is still a problem.
 
Posts: 118 | Location: Wisconsin | Registered: January 16, 2008Report This Post
Platinum Member
posted Hide Post
Can someone help me try to create a bar graph with the car file using either warranty or standard. Those are the only fields that have data long enough to wrap but I can't use any fields available for the X axis. The error I receive is ALL VERB OBJECTS MUST BE IN THE SAME PATH AS THEIR SORT FIELDS. So as far as I can tell you can't use either of those fields in a bar graph.
 
Posts: 118 | Location: Wisconsin | Registered: January 16, 2008Report This Post
Expert
posted Hide Post
The simplest solution, without seeing your code, would be to do a PRINT * against the CAR file and hold it. Then graph against the flat hold file.

The other thing you can do is post your current code so we can see what you are doing.


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
 
Posts: 2723 | Location: Ann Arbor, MI | Registered: April 05, 2006Report This Post
Platinum Member
posted Hide Post
Since I can't use the wizard I am unsure of the syntax. The error is the same as before.
ALL VERB OBJECTS MUST BE IN THE SAME PATH AS THEIR SORT FIELDS


TABLE FILE CAR
SUM
WEIGHT
STANDARD
ON TABLE HOLD AS WFGRAPH
END

GRAPH FILE WFGRAPH
SUM WEIGHT
BY STANDARD
ON GRAPH PCHOLD AS HOLD FORMAT PNG
ON GRAPH SET GRAPHDEFAULT OFF
...
 
Posts: 118 | Location: Wisconsin | Registered: January 16, 2008Report This Post
Expert
posted Hide Post
TABLE FILE CAR
PRINT WEIGHT
STANDARD
ON TABLE HOLD AS WFGRAPH FORMAT ALPHA
END

GRAPH FILE WFGRAPH
SUM WEIGHT
ACROSS STANDARD
ON GRAPH PCHOLD AS HOLD FORMAT PNG
ON GRAPH SET GRAPHDEFAULT OFF
END


Does this help?

Why can't you use the wizard?


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
 
Posts: 2723 | Location: Ann Arbor, MI | Registered: April 05, 2006Report This Post
Platinum Member
posted Hide Post
Your code produces the following error:

MERGE DIMENSIONS EXCEED THE NUMBER OF SORT FIELDS

The wizard won't allow me use any field for the X axis with the STANDARD field for the Y axis.
 
Posts: 118 | Location: Wisconsin | Registered: January 16, 2008Report This Post
Expert
posted Hide Post
What value do you have for the following setting (true or false)?
setLegendTextAutofit(???);




   In FOCUS Since 1983 ~ from FOCUS to WebFOCUS.
   Current: WebFOCUS Administrator at FIS Worldpay | 8204, 8206
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Platinum Member
posted Hide Post
I am using a combination of methods to display the text so it fits correctly below the bar graph.

setFontSizeInPoints(getY1Label(),6);
setTextRotation(getO1Label(),3);
setLegendTextAutosize(true);
setTextWrap(getO1Label(),true);

Thanks for your help.
 
Posts: 118 | Location: Wisconsin | Registered: January 16, 2008Report This Post
<JG>
posted
quote:
The wizard won't allow me use any field for the X axis with the STANDARD field for the Y axis.

Of cause it will not. You can not have an alpha column for the Y axis, It must be Numeric.

So STANDARD is not valid for the Y axis but CNT.STANDARD would be
 
Report 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] Graph Legend Wrap Length

Copyright © 1996-2020 Information Builders