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.
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.
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,
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.
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>,