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.
Where I work we often like to display graphs from highest to lowest value on a HBAR type graph. i.e. instead of the X-axis being sorted in alphabetical order, it is sorted in order of the height of the bars.
So far I've only been able to do this by ranking the data and concatenating the rank onto the front of the x-axis bar title. i.e. the highest bar becomes '01 mytitle' instead of 'mytitle', is there a better way of doing this?
Thanks
Tewy
WF 7.6.11 Output: HTML, PDF, Excel
Posts: 123 | Location: UK | Registered: October 09, 2003
I understand they are working on a better way to do this.
It uses the COLUMNS option on the graph command. It looks strange but it works.
-DEFAULTS &ORDER=LOWEST ; FILEDEF SAVEIT DISK C:\TESTYGUY\TWO\SAVEIT.FEX DEFINE FILE CAR NEWCTY/A12 = ''''||COUNTRY||'''' ; END TABLE FILE CAR SUM FUEL_CAP COUNTRY BY NEWCTY ON TABLE HOLD END -RUN SET HOLDLIST = PRINTONLY TABLE FILE HOLD SUM NEWCTY NOPRINT COMPUTE VALS/A20 = IF LAST NEWCTY EQ ' ' THEN NEWCTY ELSE 'AND ' | NEWCTY; BY &ORDER FUEL_CAP NOPRINT ON TABLE SAVE AS SAVEIT END -RUN GRAPH FILE CAR SUM FUEL_CAP ACROSS COUNTRY COLUMNS -INCLUDE SAVEIT END
(Production: WebFOCUS 7.1.3 on Win 2K/IIS 6/CGI) (Test: WebFOCUS 7.1.3 on Win 2K/IIS 6/CGI)
Posts: 104 | Location: Boston | Registered: April 23, 2003
This example is a bit excessive but it is necessary to be able to sort on the highest summated value of retail_cost. It will provide the graph you require though. Note that the ranking is prefixed on the label for you in this example.
SET ASNAMES = ON
TABLE FILE CAR
SUM RCOST AS RCOST
BY MODEL
ON TABLE HOLD AS TEMPCAR
END
-RUN
TABLE FILE TEMPCAR
SUM RCOST
RANKED BY HIGHEST RCOST
BY MODEL
ON TABLE HOLD AS TEMPCAR1
END
GRAPH FILE TEMPCAR1
SUM RCOST
BY RANK
BY MODEL
ON GRAPH SET LOOKGRAPH VBAR
ON GRAPH SET GRAPHEDIT OFF
ON GRAPH SET BARNUMB OFF
ON GRAPH SET 3D OFF
ON GRAPH SET VZERO OFF
ON GRAPH SET GRID ON
ON GRAPH SET GRMERGE ON
END
T
In FOCUS since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2
WebFOCUS App Studio 8.2.06 standalone on Windows 10
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004