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 in ##.## Format

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Graph Y axis in ##.## Format
 Login/Join
 
Member
posted
I am trying to create a graph with Y axis label format ##.## (i.e for example i need values like 01.00 , 02.50 , 03.00 etc). Please find the code below. When i execute the graph code i do not get the desired ##.## format in Y axis.I have also attached the imgae which i get after executing the code.


DEFINE FILE CAR
SE/D12=IF CAR EQ 'AUDI' THEN 825 ELSE IF CAR EQ 'BMW' THEN 500 ELSE 300;
DIV/I11 = SE/60;
REM/D12.2 = DIV + (IMOD(SE,60,'D12'))/100;
SIL/D12.2 = REM-1.2;
END

GRAPH FILE CAR
-* Created by Advanced Graph Assistant
SUM CAR.COMP.REM/D12.2
CAR.COMP.SIL/D12.2
BY CAR.COMP.CAR
ON GRAPH PCHOLD FORMAT PNG
ON GRAPH SET HTMLENCODE ON
ON GRAPH SET GRAPHDEFAULT OFF
ON GRAPH SET VZERO ON
ON GRAPH SET HAXIS 770
ON GRAPH SET VAXIS 405
ON GRAPH SET UNITS PIXELS
ON GRAPH SET LOOKGRAPH VBRSTK1
ON GRAPH SET BARNUMB OFF
ON GRAPH SET 3D OFF
ON GRAPH SET GRID ON
ON GRAPH SET GRMERGE ADVANCED
ON GRAPH SET GRMULTIGRAPH 0
ON GRAPH SET GRLEGEND 0
ON GRAPH SET GRXAXIS 1
ON GRAPH SET GRAPHSTYLE *
setReportParsingErrors(false);
setSelectionEnableMove(false);
setDepthRadius(5);
setTransparentBorderColor(getChartBackground(),true);
setMarkerDisplay(true);
setConnectLineMarkers(false);
setConnectScatterMarkers(false);
setO1LabelDisplay(true);
setO1AxisSide(0);
setO1MajorGridDisplay(true);
setO1MajorGridStyle(0);
setO1MinorGridDisplay(false);
setY1LabelDisplay(true);
setY1AxisSide(0);
setY1MajorGridDisplay(true);
setY1MajorGridStyle(0);
setY1MinorGridDisplay(false);
setTextFormatPreset(getY1Label(),-1);
setTextFormatPattern(getY1Label(),"##.##");
setPieLabelDisplay(0);
setTextFormatPreset(getPieSliceLabel(),1);
setRiserBorderMode(1);
setSeriesDefaultTransparentBorderColor(true);
setUseSeriesBorderDefaults(true);
setLegendDisplay(true);
setFontSizeAbsolute(getY1Title(),true);
setFontSizeAbsolute(getY1Label(),true);
setFontSizeAbsolute(getY2Title(),true);
setFontSizeAbsolute(getY2Label(),true);
setFontSizeAbsolute(getO1Title(),true);
setPlace(true);
setDisplay(getDataText(),true);
ENDSTYLE
END

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


Webfocus 7702
Unix
All outputs
 
Posts: 11 | Registered: October 28, 2011Report This Post
Guru
posted Hide Post
Hi,

This seems to be an issue/limitation with the tool.

With this piece

  
setTextFormatPreset(getY1Label(),-1);
setTextFormatPattern(getY1Label(),"##.##");


This should work perfect, where in It is not.

There was already an topic discussed on the same issue, which is marked solved. But pity, without any solution.

http://forums.informationbuild...957027006#1957027006

You may raise this to Tech Support, to get this further.


Thanks,

Ramkumar.
WebFOCUS/Tableau
Webfocus 8 / 7.7.02
Unix, Windows
HTML/PDF/EXCEL/AHTML/XML/HTML5
 
Posts: 394 | Location: Chennai | Registered: December 02, 2009Report This Post
Expert
posted Hide Post
setTextFormatPattern(getY1Label(),"00.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 Tom, setTextFormatPattern(getY1Label(),"00.00");
works fine.

Thanks Ramkumar for your input.


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 in ##.## Format

Copyright © 1996-2020 Information Builders