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.
I need to set text wrapping for the labels of X-Axis. I tried use the setTextWrap () to X1Label and O1Label, but it does not working. Maybe some configurations overlay the wrapping behavior. The following code is a example for this issue:
GRAPH FILE CAR
PRINT SEATS
BY MODEL
ON GRAPH PCHOLD FORMAT JSCHART
ON GRAPH SET VZERO OFF
ON GRAPH SET HTMLENCODE ON
ON GRAPH SET GRAPHDEFAULT OFF
ON GRAPH SET HAXIS '300'
ON GRAPH SET VAXIS '400'
ON GRAPH SET GRMERGE ADVANCED
ON GRAPH SET GRMULTIGRAPH 0
ON GRAPH SET GRLEGEND 0
ON GRAPH SET GRXAXIS 1
ON GRAPH SET LOOKGRAPH HBAR
ON GRAPH SET AUTOFIT ON
ON GRAPH SET STYLE *
*GRAPH_JS
riserShadow: true,
border: {width: 0},
introAnimation: {
enabled: true,
duration: 1000}
*END
*GRAPH_SCRIPT
setO1LabelAutofit(false);
setTextWrap(getO1Label(),true);
setPieDepth(0);
setPieTilt(0);
setDepthRadius(0);
setCurveFitEquationDisplay(false);
setPlace(false);
setDisplay (getO1Title(),false);
*END
END
Do you have any idea?
Thanks in advance!This message has been edited. Last edited by: Tamra,
The biggest problem we have is that almost everything we thought we knew about WebFOCUS charts is thrown out the window when turning on JS Charts. In the slightly altered code below, you will see that the O1 labels are wrapped. I had to make the chart bigger and also control the font size to make this work. Now, turn on JS Charts and the wrapping stops working. This would normally suggest we must turn on wrapping in the JS Chart part of the stylesheet (*GRAPH_JS), but I bet there is no such thing.
GRAPH FILE CAR
PRINT SEATS
BY MODEL
-*ON GRAPH PCHOLD FORMAT JSCHART
ON GRAPH SET VZERO OFF
ON GRAPH SET HTMLENCODE ON
ON GRAPH SET GRAPHDEFAULT OFF
ON GRAPH SET HAXIS '600'
ON GRAPH SET VAXIS '700'
ON GRAPH SET GRMERGE ADVANCED
ON GRAPH SET GRMULTIGRAPH 0
ON GRAPH SET GRLEGEND 0
ON GRAPH SET GRXAXIS 1
ON GRAPH SET LOOKGRAPH HBAR
ON GRAPH SET AUTOFIT ON
ON GRAPH SET STYLE *
*GRAPH_SCRIPT
setFontSizeAbsolute(getO1Label(),true);
setFontSize(getO1Label(),8);
setTextWrap(getO1Label(),true);
setFontSizeAbsolute(getY1Label(),true);
setFontSize(getY1Label(),8);
setTextWrap(getY1Label(),true);
setFontSizeAbsolute(getY1Title(),true);
setFontSize(getY1Title(),6);
setO1LabelAutofit(false);
setPieDepth(0);
setPieTilt(0);
setDepthRadius(0);
setCurveFitEquationDisplay(false);
setPlace(false);
setDisplay (getO1Title(),false);
*END
END
Francis
Give me code, or give me retirement. In FOCUS since 1991
Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
Thank you by answers. I found these configuration options in the WebFOCUS Graphics Release 8.1 Version 05 (wf81graph.pdf). In this documentation there are some ways to do this (pages 1008, 441 and 463), but neigther of them are working properly or I am doing something wrong.
The stuff in "WebFOCUS Graphics Release 8.1 Version 05" very often is not compatible with JS Charts, also called HTML5 Charts. I would open a case with IBI to ask why.
Francis
Give me code, or give me retirement. In FOCUS since 1991
Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
which is the same library referenced in the examples on the Three D Graphics website. They are also the makers of Perspective For Java, which is the non-HTML5 chart engine that WebFOCUS uses. These two don't work together very well, and that's sad.
Francis
Give me code, or give me retirement. In FOCUS since 1991
Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server