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.
Starting to make my first ventures into Graphs and have got stuck quite quickly!
I have a simple table that contains summarised data with the following fields with one record per day of the week:
DAY (Eg MON, TUE, WED,...) DAY_NO (Eg 1,2,3,...) ORDERED
For my Bar Chart I was hoping to have the days of the week on the X Axis with the Order Qty on the Y Axis. However if I use the field DAY the chart orders the columns alphabetically, so the columns are in the order FRI, MON, SAT, THU etc.
I was hoping I could set my sort by DAY_NO by DAY and make DAY_NO NOPRINT but I am not having any success.
GRAPH FILE SQLOUT
PRINT SQLOUT.SQLOUT.ORDERED
ACROSS SQLOUT.SQLOUT.DAY
ON GRAPH SET LOOKGRAPH VBRSTK1
ON GRAPH SET 3D ON
ON GRAPH SET BARNUMB OFF
ON GRAPH SET GRID ON
ON GRAPH SET GRAPHEDIT SERVER
ON GRAPH SET VZERO ON
ON GRAPH SET GRAPHSTYLE *
setSeriesType($0,1);
setSeriesType($1,1);
setSeriesType($2,1);
setLegendDisplay(true);
setLegendMarkerPosition(0);
setMarkerDisplay(true);
setUseSeriesShapes(false);
setConnectLineMarkers(false);
setConnectScatterMarkers(false);
setO1LabelDisplay(true);
setO1AxisSide(0);
setO1MajorGridDisplay(true);
setO1MajorGridStyle(0);
setO1MinorGridDisplay(false);
setY1LabelDisplay(true);
setY1AxisSide(0);
setTextFormatPreset(getY1Label(),1);
setY1MajorGridDisplay(true);
setY1MajorGridStyle(0);
setY1MinorGridDisplay(false);
setFontSize(getO1Label(),12);
setFontSizeAbsolute(getO1Label(),true);
setPlace(true);
ENDSTYLE
END
Any ideas?
Many thanks
MarkThis message has been edited. Last edited by: mark66,
WebFocus 765. iSeries v5r4
Posts: 175 | Location: England | Registered: April 11, 2006
Thanks, I have changed my PRINT to SUM but the DAYNO field that I have set to NOPRINT is still appearing on the X Axis and the DAYS label is not showing at all.
I should add that I am currently working on a Webquery project (cut down version of WebFocus), however I would still expect this to work??
WebFocus 765. iSeries v5r4
Posts: 175 | Location: England | Registered: April 11, 2006
I added ON GRAPH SET GRMERGE ON to your style code...
APP PREPENDPATH ODS_FINANCE IBISAMP
-RUN
DEFINE FILE GGSALES
DAY_ENG/A4 = DOWK(DATE, 'A4');
DAY_NUM/I2 = DECODE DAY_ENG (
'MON' 1
'TUE' 2
'WED' 3
'THU' 4
'FRI' 5
'SAT' 6
ELSE 7);
END
GRAPH FILE GGSALES
SUM
DOLLARS/P12.2MC
BY DAY_NUM NOPRINT
BY DAY_ENG
ON GRAPH SET LOOKGRAPH VBRSTK1
ON GRAPH SET 3D ON
ON GRAPH SET GRMERGE ON
ON GRAPH SET BARNUMB OFF
ON GRAPH SET GRID ON
ON GRAPH SET GRAPHEDIT SERVER
ON GRAPH SET VZERO ON
ON GRAPH SET GRAPHSTYLE *
setSeriesType($0,1);
setSeriesType($1,1);
setSeriesType($2,1);
setLegendDisplay(true);
setLegendMarkerPosition(0);
setMarkerDisplay(true);
setUseSeriesShapes(false);
setConnectLineMarkers(false);
setConnectScatterMarkers(false);
setO1LabelDisplay(true);
setO1AxisSide(0);
setO1MajorGridDisplay(true);
setO1MajorGridStyle(0);
setO1MinorGridDisplay(false);
setY1LabelDisplay(true);
setY1AxisSide(0);
setTextFormatPreset(getY1Label(),1);
setY1MajorGridDisplay(true);
setY1MajorGridStyle(0);
setY1MinorGridDisplay(false);
setFontSize(getO1Label(),12);
setFontSizeAbsolute(getO1Label(),true);
setPlace(true);
ENDSTYLE
END
-EXIT