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.
The measures are defined as D16B but the hover text shows the - sign for negative numbers.
I don't display the text over the graph bars or lines, which is what I think setDataTextFormat is for. Is there a command to modify the format of the hover text?
Thanks,This message has been edited. Last edited by: Kerry,
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
This sample graph shows the brackets for me in the hover (ToolTip) text.
DEFINE FILE CAR
PCTVAL/D6.2B = DECODE COUNTRY('ENGLAND' 5.5 'ITALY' -9.9 ELSE 0) ;
END
GRAPH FILE CAR
SUM
PCTVAL
BY COUNTRY
ON GRAPH SET LOOKGRAPH VBAR
ON GRAPH SET GRAPHEDIT SERVER
ON GRAPH SET GRAPHSTYLE *
setDataTextDisplay (true);
setTextFormatPreset(getSeries(0),-1);
setTextFormatPattern(getSeries(0),"#0.00'%';(#0.00'%)'");
setTextFormatPreset (getY1Label(), -1);
setTextFormatPattern (getY1Label(),"#0.00'%';(#0.00'%)'");
ENDSTYLE
END
Waz, thanks for the example. I managed to make it work for me. I find it annoying you have to specify a format for something as basic as this.
GRAPH FILE CAR
SUM
COMPUTE SALESN/D10B = SALES * (-1); AS 'Sales'
BY COUNTRY AS ''
ON GRAPH SET LOOKGRAPH VBAR
ON GRAPH SET GRAPHEDIT SERVER
ON GRAPH SET GRAPHSTYLE *
-*setDataTextDisplay (true);
-*setTextFormatPreset(getSeries(0),-1);
setTextFormatPattern(getSeries(0),"#,###'%';(#,###'%)'");
-*setTextFormatPreset (getY1Label(), -1);
setTextFormatPattern (getY1Label(),"#,###'%';(#,###'%)'");
ENDSTYLE
END
Cheers,
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
It's been a while since I visited this issue, but I think I've figured out when this occurs - if one of the measures is over 2,000,000,000, the commas do not display.
The tooltip that displays the dimension and measure values does not display the commas when one of the values is 2,000,000,000 or greater.
Please see try this fex. The highest value is greater than 2,000,000,000 and the commas do not display. Change 22679 t0 22678 and the commas display because the highest value is less than 2,000,000,000.
GRAPH FILE CAR
SUM
COMPUTE SALESN/D20 = SALES * 22679;
ACROSS COUNTRY
ON GRAPH PCHOLD FORMAT PNG
ON GRAPH SET HTMLENCODE ON
ON GRAPH SET GRAPHDEFAULT OFF
ON GRAPH SET VZERO OFF
ON GRAPH SET HAXIS 520
ON GRAPH SET VAXIS 250
ON GRAPH SET UNITS PIXELS
ON GRAPH SET LOOKGRAPH PIE
ON GRAPH SET GRLEGEND 0
ON GRAPH SET GRXAXIS 1
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