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 have this graph that can have variable number of series depending on the parameter.
For example, one run may have 9 status. In other runs, it might be just 1 status.
GRAPH FILE TEMPHOLD SUM PCT.NEWMINUTES AS '' WAFERSFINISHED AS 'WFR' ACROSS DAYFMT AS '' BY STATUS ROWS 'Running' OVER 'Idle' OVER 'PM' OVER 'Setup' OVER 'Maint' OVER 'Other' OVER 'Stop' OVER 'Offline' OVER 'Down' ON GRAPH SET LOOKGRAPH VBRSTK2 ON GRAPH SET GRAPHEDIT SERVER ON GRAPH SET BARNUMB OFF ON GRAPH SET 3D OFF ON GRAPH SET VZERO ON ON GRAPH SET GRID ON ON GRAPH SET VAXIS 450 ON GRAPH SET HAXIS 1200 ON GRAPH SET GRMERGE ON ON GRAPH PCHOLD FORMAT JPEG ON GRAPH SET GRAPHSTYLE * : : -*RUN (GREEN) setFillColor(getSeries(0),new Color(51,204,51))); -*setFillColor(getSeries(1),new Color(0,0,255))); THIS IS THE GREEN LINE
I would be inclined to approach this from a different angle.
You want all the status' irrespective of whether they exist? Then create a temporary file within your fex that has all the status' within it and then join that as parent to your other data as child. You status will always exist and therefore you will always have a series value (even if it is NULL or MISSING). It follows that your colour scheme should always be correct.
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
Also, you can use Dialogue Manager to loop through your API commands and adjust the color depending on the loop number and any other conditions you might have.
You'll have to do some preprocessing to get &LINES and what kind of series you have. The series number and the color codes will have to be variables. You can set the color codes with a decode.
Let me know if this is not clear and I can try to supply more detail.
INSERT INTO @Colors VALUES ('Red'), ('White'), ('Blue')
DECLARE @TestData TABLE ( Groop varchar(50), Color varchar(50), Measure int )
-- No White color in test data INSERT INTO @TestData (color, Groop, Measure) VALUES ('Red', 'One', 150), ('Red', 'Two', 40), ('Blue', 'One', 400), ('Blue', 'Two', 100)
-- Report on all colors SELECT ac.Groop, ac.Color, ISNULL(td.Measure,0) AS Measure FROM ( SELECT DISTINCT Groop, c.Color FROM @TestData td CROSS JOIN @Colors c ) ac LEFT OUTER JOIN @TestData td ON ac.Color = td.Color AND ac.Groop = td.Groop
I have struggled with the WebFOCUS JOIN like forever, but it remains foreign to me. Can anyone give a hint?This message has been edited. Last edited by: Marc97229,
WebFOCUS 8.0.0.8, Windows 7
Posts: 36 | Location: Portland, OR (USA) | Registered: October 11, 2012
TABLE FILE COLORDATA PRINT COLOR COMPUTE DUMMY1/A1 = ''; ON TABLE HOLD AS H002 FORMAT FOCUS INDEX DUMMY1 END -RUN
JOIN DUMMY1 IN H001 TO ALL DUMMY1 IN H002 AS J1
TABLE FILE H001 PRINT DST.H002.COLOR DST.GROEP COMPUTE MEASURE/I4 = 0; BY H002.COLOR BY GROEP ON TABLE HOLD AS BASE FORMAT FOCUS END
-*TABLE FILE BASE -*PRINT * -*END
MATCH FILE TESTDATA SUM MEASURE BY GROEP BY COLOR RUN FILE BASE SUM MEASURE BY GROEP BY COLOR AFTER MATCH HOLD AS MATCHDATA OLD-OR-NEW END
-*TABLE FILE MATCHDATA -*PRINT * -*END
-* Order color for use in a chart (spaces do affect the order, but are not visible in the ToolTip) TABLE FILE MATCHDATA PRINT MEASURE GROEP BY COMPUTE KLEUR/A7 = IF COLOR EQ 'Rood' THEN ' Rood' ELSE IF COLOR EQ 'Wit' THEN ' Wit' ELSE 'Blauw'; ON TABLE HOLD AS INTERIM END
TABLE FILE INTERIM SUM INTERIM.INTERIM.MEASURE BY INTERIM.INTERIM.KLEUR ACROSS INTERIM.INTERIM.GROEP END
-EXIT
WebFOCUS 8.0.0.8, Windows 7
Posts: 36 | Location: Portland, OR (USA) | Registered: October 11, 2012