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 a line graph created in Advanced Graph Assistant.
GRAPH FILE EMPDATA SUM SALARY BY HIREDATE END
How do I get a second line on the graph that is a straight horizintal line where the maximum salary is? This line would be as long as the graph is wide.
KrishnaThis message has been edited. Last edited by: Krishna,
TABLE FILE EMPDATA
SUM
MAX.SALARY/I9
ON TABLE SET HOLDLIST PRINTONLY
ON TABLE HOLD FORMAT ALPHA
END
-RUN
-READ HOLD,&MAX_SAL
GRAPH FILE EMPDATA
SUM
SALARY
COMPUTE MAXSAL/I9 = &MAX_SAL; AS ''
BY HIREDATE
ON TABLE SET GRAPHSTYLE *
setGraphType(17);
setSeriesType(getSeries(0), 1);
setSeriesType(getSeries(1), 2);
setDataLineThickness(1);
setMarkerDisplay(false);
ENDSTYLE
END
It is necessary to sum the salaries by HIREDATE, then to locate the max salary and finally to display the graph:
-* File KRISHNA01.fex
SET ASNAMES=ON
TABLE FILE EMPDATA
SUM SALARY
BY HIREDATE
ON TABLE HOLD AS K1
END
TABLE FILE K1
SUM MAX.SALARY AS MAXSALARY
SUM SALARY
BY HIREDATE
ON TABLE HOLD AS K2
END
-RUN
GRAPH FILE K2
-* Created by Advanced Graph Assistant
SUM K2.K2.SALARY
K2.K2.MAXSALARY
BY K2.K2.HIREDATE
ON GRAPH PCHOLD FORMAT PNG
ON GRAPH SET HTMLENCODE ON
ON GRAPH SET GRAPHDEFAULT OFF
ON GRAPH SET VZERO OFF
ON GRAPH SET HAXIS 770
ON GRAPH SET VAXIS 405
ON GRAPH SET UNITS PIXELS
ON GRAPH SET LOOKGRAPH VBAR
ON GRAPH SET GRMERGE ADVANCED
ON GRAPH SET GRMULTIGRAPH 0
ON GRAPH SET GRLEGEND 0
ON GRAPH SET GRXAXIS 1
ON GRAPH SET GRAPHSTYLE *
setTemplateFile("/images/tdg/template/IBISouthWestern.txt");
setReportParsingErrors(false);
setSelectionEnableMove(false);
setDepthRadius(5);
setTransparentBorderColor(getChartBackground(),true);
setTransparentBorderColor(getSeries(0),true);
setTransparentBorderColor(getSeries(1),true);
setTransparentBorderColor(getSeries(2),true);
setTransparentBorderColor(getSeries(3),true);
setTransparentBorderColor(getSeries(4),true);
setTransparentBorderColor(getSeries(5),true);
setTransparentBorderColor(getSeries(6),true);
setTransparentBorderColor(getSeries(7),true);
setTransparentBorderColor(getSeries(8),true);
setTransparentBorderColor(getSeries(9),true);
setTransparentBorderColor(getSeries(10),true);
setPlace(true);
setSeriesType(getSeries(1),2);
ENDSTYLE
END
Daniel In Focus since 1982 wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF
Posts: 1980 | Location: Tel Aviv, Israel | Registered: March 23, 2006
in the first pass, so that each date would have one value, and the max salary line would touch the top of the max salary series, rather than go through it in places.
The approach of not using variables allows you to bring this back into the Advanced Graph Assistant to do more formatting.