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 - Y axis Label decimal Points

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Graph - Y axis Label decimal Points
 Login/Join
 
Member
posted
please find attached the sample code and the graph image with this post. I want
Y axis values to be displayed as 0.00,0.05,0.10,0.15,0.20 instead of
0,0.05,0.1,0.15,0.2 .
i.e i want the 2 decimal place to be constant across the whole Y axis. I have
used the Code bit
setTextFormatPreset(getY1Label(),-1);
setTextFormatPattern(getY1Label(),"#.##");

But i am not able to get the desired format in Y axis. Please advice.
**************************************
DEFINE FILE CAR
EXA/D12.2=(SALES/100000)+0.01;
END
GRAPH FILE CAR
SUM COMPUTE EXA1/D12.2 =EXA;
BY CAR
WHERE EXA GT 0.01
WHERE TOTAL EXA1 LT 0.5
ON GRAPH SET LOOKGRAPH VBAR
ON GRAPH SET 3D OFF
ON GRAPH SET BARNUMB OFF
ON GRAPH SET GRID ON
ON GRAPH SET GRAPHEDIT SERVER
ON GRAPH SET GRMERGE ON
ON GRAPH SET VZERO OFF
ON GRAPH SET VAXIS 500
ON GRAPH SET HAXIS 700
ON GRAPH SET GRAPHSTYLE *
setAxisSide(getY2Axis(),1);
setAxisSide(getY4Axis(),1);
setFillType(getChartBackground(),1);
setFillColor(getChartBackground(),new Color(255,255,255));
setBorderColor(getLegendArea(),new Color(204,204,204));
setFillColor(getDataText(),new Color(0,0,0));
setTextFormatPreset(getY1Label(),-1);
setTextFormatPattern(getY1Label(),"0.##");
ENDSTYLE
END
*******************************************

This message has been edited. Last edited by: Kerry,


Webfocus 7702
Unix
All outputs
 
Posts: 11 | Registered: October 28, 2011Report This Post
Expert
posted Hide Post
setTextFormatPattern(getY1Label(),"0.00");


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
 
Posts: 1972 | Location: Centennial, CO | Registered: January 31, 2006Report This Post
Member
posted Hide Post
Thanks. It works
Regards
Shankari


Webfocus 7702
Unix
All outputs
 
Posts: 11 | Registered: October 28, 2011Report 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 - Y axis Label decimal Points

Copyright © 1996-2020 Information Builders