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     [CLOSED] show data in millions in graph

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] show data in millions in graph
 Login/Join
 
Master
posted
Hi,

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


Thanks

This message has been edited. Last edited by: <Kathryn Henning>,


WFConsultant

WF 8105M on Win7/Tomcat
 
Posts: 780 | Location: Florida | Registered: January 09, 2005Report This Post
Expert
posted Hide Post
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, 2005Report This Post
Master
posted Hide Post
Doug,

I did that. That will put you the code setDataTextFormat(10) but it is not solving my purpose.


WFConsultant

WF 8105M on Win7/Tomcat
 
Posts: 780 | Location: Florida | Registered: January 09, 2005Report This Post
Expert
posted Hide Post
You need to use a custom format for the number.

Search Focalpoint and the documentation for setDataTextFormatPattern


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Master
posted Hide Post
waz,

see my sample code. I already have that API.

Yes I did looked in FocalPoint and documentation before posting something here.


WFConsultant

WF 8105M on Win7/Tomcat
 
Posts: 780 | Location: Florida | Registered: January 09, 2005Report This Post
Expert
posted Hide Post
Kamesh, take a close look at this link, and the setting for setDataTextFormat.

DataTextFormatPattern


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report 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     [CLOSED] show data in millions in graph

Copyright © 1996-2020 Information Builders