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     Changing X interval for graph

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Changing X interval for graph
 Login/Join
 
Member
posted
I am graphing population across time(in days). The days column in the database goes from 0-210. I simply want to have the X-axis be in intervals of 7. day 0, 7, 14, 21 etc acroos x axis.

How is this done? Thanks in advance
 
Posts: 16 | Registered: February 01, 2006Report This Post
Master
posted Hide Post
try this properties,

setX1MajorGridStepAuto (true);
setX1MajorGripStepAutoValue (7);


WFConsultant

WF 8105M on Win7/Tomcat
 
Posts: 780 | Location: Florida | Registered: January 09, 2005Report This Post
Member
posted Hide Post
Thanks for your suggestion. However I get this error when adding those properties:

Possible Error on:setX1MajorGridStepAutoValue(7.0);
 
Posts: 16 | Registered: February 01, 2006Report This Post
Master
posted Hide Post
Add this also

setX1MajorGridStep (getX1MajorGridStepAutoValue());


WFConsultant

WF 8105M on Win7/Tomcat
 
Posts: 780 | Location: Florida | Registered: January 09, 2005Report This Post
<JG>
posted
Isn’t the java API a wonderful tool, and quite logical, some times.

By definition you can not set an auto value, unless you first disable the auto assignment in which case it's not auto.

The correct API calls are

setX1MajorGridStepAuto(false);
setX1MajorGripStepAutoValue(7);
setX1MajorGridStep(getX1MajorGridStepAutoValue());

However the logical assignments should be

setX1MajorGridStepAuto(false);
setX1MajorGripStep(7);

Both should work, however if you are displaying a minor grid then you may well have to set them as well.

Play with the order of the calls if they do not work first time.
 
Report This Post
Member
posted Hide Post
Thank you both for your help, however I cannot get anything to work. Am I missing somehting else in the style portion of the code. Here is the whole code. I get an error with this. Thanks for the assistance!

GRAPH FILE Z_GEOLOC_CONST_PCNT
SUM PERCENT_HORZ PERCENT_VERT PERCENT_GEN
BY CDAY
ON GRAPH SET LOOKGRAPH VBAR
ON GRAPH SET GRAPHEDIT SERVER
ON GRAPH SET BARNUMB OFF
ON GRAPH SET 3D OFF
ON GRAPH SET VZERO ON
ON GRAPH SET GRID OFF
ON GRAPH SET GRAPHSTYLE *
setX1MajorGridStepAuto(false);
setX1MajorGridStepAutoValue(7);
setX1MajorGridStep(getX1MajorGridStepAutoValue());
setMarkerDisplay(true);
setConnectLineMarkers(false);
setConnectScatterMarkers(false);
setO1LabelDisplay(true);
setO1AxisSide(0);
setO1MajorGridDisplay(false);
setO1MinorGridDisplay(false);
setAxisAssignment(0,0);
setAxisAssignment(1,0);
setAxisAssignment(2,0);
setY1LabelDisplay(true);
setY1AxisSide(0);
setY1MajorGridDisplay(true);
setY1MajorGridStyle(0);
setY1MinorGridDisplay(false);
setTextFormatPreset(getY1Label(),-1);
setTextFormatPattern(getY1Label(),"#.##");
setPieFeelerTextDisplay(1);
setPieLabelDisplay(0);
setTextFormatPreset(getPieSliceLabel(),1);
setLegendDisplay(true);
setFontSizeAbsolute(getY1Title(),true);
setFontSizeAbsolute(getY1Label(),true);
setFontSizeAbsolute(getY2Title(),true);
setFontSizeAbsolute(getY2Label(),true);
setFontSizeAbsolute(getO1Title(),true);
setPlace(true);
ENDSTYLE
ON GRAPH SET STYLE *
PAGESIZE='Letter',
LEFTMARGIN=0.250000,
RIGHTMARGIN=0.250000,
TOPMARGIN=0.250000,
BOTTOMMARGIN=0.250000,
SQUEEZE=ON,
ORIENTATION=PORTRAIT,
 
Posts: 16 | Registered: February 01, 2006Report This Post
Master
posted Hide Post
Check this discussion,

https://forums.informationbuilders.com/eve/forums/a/...871077331#4871077331

You can download the document from that discussion and see which method solves your problem.


WFConsultant

WF 8105M on Win7/Tomcat
 
Posts: 780 | Location: Florida | Registered: January 09, 2005Report This Post
Member
posted Hide Post
I have tried everything to get this to work with no luck. Could someone please paste their code where they have successfully set the x-axis intervals. Thank You.
 
Posts: 16 | Registered: February 01, 2006Report This Post
<JG>
posted
Ryan, I suspect that your days are not actually multiples of 7.

Because your X axis is your BY then it must contain week number and not
the day number. Remember your ploting series on the X and not values.

You need to do a conversion to week using date functions as below.

(beware WebFocus calls the first full week, week 1 so in the example
that starts on January 5)

SET WEEKFIRST = 7
DEFINE FILE GGSALES
NEW_DATE/YYMD = DATECVT(DATE, 'I8YYMD', 'YYMD');
TRANSDATE/HYYMDS = HDTTM(NEW_DATE, 8, 'HYYMDS');
WEEK_COMPONENT/A2 = HNAME(TRANSDATE, 'WEEK', 'A2');
END
TABLE FILE GGSALES
BY TRANSDATE
BY WEEK
WHERE DATE FROM 19970105 TO 19971231
END

Alternatively divide the number of days by 7 to get a simple week number.

This message has been edited. Last edited by: <JG>,
 
Report 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     Changing X interval for graph

Copyright © 1996-2020 Information Builders