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 would like to show the data in millions with only 2 decimal places.
For example, if my data shows 10,245,678 then want to show in the graph as 10.24M.
I tried using the setDataTextFormat(10) but it shows as 10.245678M.
see the sample code below,
DEFINE FILE CAR RCOST/D15.2=IF COUNTRY EQ 'ENGLAND' THEN 25456789 ELSE 43780945; END
GRAPH FILE CAR SUM RCOST BY COUNTRY ON GRAPH PCHOLD FORMAT PNG ON GRAPH SET GRAPHEDIT SERVER ON GRAPH SET 3D OFF ON GRAPH SET GRAPHDEFAULT OFF ON GRAPH SET VZERO OFF ON GRAPH SET HAXIS 500 ON GRAPH SET VAXIS 400 ON GRAPH SET UNITS PIXELS ON GRAPH SET LOOKGRAPH HBAR ON GRAPH SET GRAPHSTYLE * setDisplay(getDataText(),true); setFontName(getDataText(),"Arial"); -*setTextFormatPattern(getDataText(0),"##.##");
setDataTextFormat(10); setDataTextFormatPattern("##.##"); ENDSTYLE END -EXIT
ThanksThis message has been edited. Last edited by: <Kathryn Henning>,
WFConsultant
WF 8105M on Win7/Tomcat
Posts: 780 | Location: Florida | Registered: January 09, 2005
Unless I'm missing part of your question, all that's needed is to open it in Graph Assitant, select Properties, select Y Axis, select desired Value Format.
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005