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.



Read-Only Read-Only Topic
Go
Search
Notify
Tools
Scaling Graph
 Login/Join
 
<wf newbie>
posted
I have a graph where sometimes the horizontal axis will go up to 400 and sometimes only up to 20. How can I set the x-axis scaling based on the the max value. eg. scale by 1 if LE 20, scale by 5 if LE 100 and scale by 25 if LE 400.

Here is my code
GRAPH FILE REPORT_SHORTFALLS
SUM REPORT_SHORTFALLS.SHORTFALLG
ACROSS REPORT_SHORTFALLS.CDAY

Any help is greatly appreciated
 
Report This Post
Gold member
posted Hide Post
Hi,

This is how I've determined the "skipcount" of x-axis (across-axis). First, you need to know the number of values for x-axis, in your case the number of REPORT_SHORTFALLS.CDAYs. Then just read this value to a parameter and use it with setO1LabelSkipCount-command.

Hope this helps.
Mika

TABLE FILE EMPDATA
SUM CNT.HIREDATE
-* WHERE DIV EQ 'CE' OR 'WE' ;
ON TABLE SAVE
END
-RUN
-READ SAVE &XCNT.A5
-SET &XSKIP_CNT = IF &XCNT LE 20 THEN 2 ELSE 5 ;
GRAPH FILE EMPDATA
SUM SALARY
ACROSS HIREDATE
-* WHERE DIV EQ 'CE' OR 'WE'
ON GRAPH SET GRAPHSTYLE *
setO1LabelAutoSkip(2);
-* setO1LabelSkipBegin(1);
setO1LabelSkipCount(&XSKIP_CNT);
setO1LabelRotate(3);
ENDSTYLE
END
 
Posts: 58 | Location: Sydney, Australia | Registered: April 22, 2005Report This Post
Expert
posted Hide Post
setY1MajorGridStepAuto(false);
setY1MinorGridStepAuto(false);
setY1MajorGridStep(1.0);
setY1ScaleMinAuto(false);
setY1ScaleMaxAuto(false);
setScaleMin(getY1Axis(), &MIN );
setScaleMax(getY1Axis(), &MAX );

heres a clip of my code...see the &MIN and &MAX ?
those values i calculate in my fex.
works like a charm for me. You can switch Y1 to X1, of course.
i got this help from focalpointer JG..thanks JG.
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic


Copyright © 1996-2020 Information Builders