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 Scale Question

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Graph Scale Question
 Login/Join
 
Member
posted
I would like to enforce a scale on my graph in discreet integers from 1 to 4, with 4 being the top of the scale. I've figgured out how to enforce the integer portion of my problem with the graphstyle statements:

setGridStep(getY1MajorGrid(),1.0);
setGridStepAuto(getY1MajorGrid(),false);

However, I want to force the max of the scale at a certain point rather than just letting it be dynamic (in my example 4).

The code sniglet below gets you to where I am. The result set has two datapoints both at a value of 2 (seats). I want the graph to indicate that 4 would be a max amount. So, the graph would have major grids at 1,2,3,4 (actually 4 would be the top of the scale and not a major grid).

GRAPH FILE CAR
SUM CAR.BODY.SEATS
ACROSS CAR.CARREC.MODEL
WHERE (CAR.ORIGIN.COUNTRY EQ 'ENGLAND');
WHERE (CAR.CARREC.MODEL EQ 'TR7' OR 'V12XKE AUTO');
ON GRAPH SET GRXAXIS 1
ON GRAPH SET GRAPHSTYLE *
setGridStep(getY1MajorGrid(),1.0);
setGridStepAuto(getY1MajorGrid(),false);
ENDSTYLE
END

Anybody have a clue on this one?

TIA

-cDave

This message has been edited. Last edited by: Kerry,
 
Posts: 15 | Registered: October 27, 2006Report This Post
Gold member
posted Hide Post
How about

-DEFAULT &VALUE = 6;

GRAPH FILE CAR
SUM CAR.BODY.SEATS
ACROSS CAR.CARREC.MODEL
WHERE (CAR.ORIGIN.COUNTRY EQ 'ENGLAND');
WHERE (CAR.CARREC.MODEL EQ 'TR7' OR 'V12XKE AUTO');
ON GRAPH SET GRXAXIS 1
ON GRAPH SET GRAPHSTYLE *
setGridStep(getY1MajorGrid(),1.0);
setGridStepAuto(getY1MajorGrid(),false);

setY1ScaleMaxAuto(false);
setY1ScaleMax(&VALUE);


ENDSTYLE
END


Laure


Prod: WebFOCUS 7.7.03 - MRE, BID, - WindowsXP - Oracle 9i, SQLServer, DevStudio 7.7.3 - Apache Tomcat , Output: HTML, Excel 2013 and PDF
 
Posts: 78 | Location: Florida | Registered: December 07, 2006Report This Post
Member
posted Hide Post
Beauty! Thanks a bunch Laure! That is just what I needed.
 
Posts: 15 | Registered: October 27, 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     [SOLVED] Graph Scale Question

Copyright © 1996-2020 Information Builders