Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [solved] max value line in line graph
Go
New
Search
Notify
Tools
Reply
  
[solved] max value line in line graph
 Login/Join
 
Member
posted
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.

Krishna

This message has been edited. Last edited by: Krishna,


Version: 7.7.3
Windows 7
PDF, Excel, HTML
 
Posts: 13 | Registered: December 26, 2011Reply With QuoteReport This Post
<JG>
posted
check the graph API doc's

look for Reference line.

Requires a pre graph step to get the value and assign it to a variable that can be put into the API call
 
Reply With QuoteReport This Post
Silver Member
posted Hide Post
This might also be helpful:

http://www.threedgraphics.com/...rogrammer/pfj_08.htm


WebFOCUS & DataMigrator 7.7.03M
Windows 2003, Windows 2008 x64
 
Posts: 35 | Registered: May 11, 2011Reply With QuoteReport This Post
<JG>
posted
Generally you should not refer to the 3dG documentation (was the case many years ago).

IBI owns the rights to modify the source and so It's documentation should be used.

For most calls it is the same,
BUT IBI has enhanced quite a number of items and also not implemented some.
 
Reply With QuoteReport This Post
Expert
posted Hide Post
The documentation in 3dg is also 12 years old, but sometimes helpful.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.05OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Know The Code

 
Posts: 6104 | Location: Land of the Darug people, Terra Australis Incognita | Registered: October 31, 2006Reply With QuoteReport This Post
<FreSte>
posted
...?


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
 
Reply With QuoteReport This Post
Expert
posted Hide Post
quote:
...?


Confused


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.05OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Know The Code

 
Posts: 6104 | Location: Land of the Darug people, Terra Australis Incognita | Registered: October 31, 2006Reply With QuoteReport This Post
<FreSte>
posted
It's my shortcut for "Maybe something like this ?" Wink
 
Reply With QuoteReport This Post
Expert
posted Hide Post
Big Grin


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.05OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Know The Code

 
Posts: 6104 | Location: Land of the Darug people, Terra Australis Incognita | Registered: October 31, 2006Reply With QuoteReport This Post
Virtuoso
posted Hide Post
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: 1932 | Location: Tel Aviv, Israel | Registered: March 23, 2006Reply With QuoteReport This Post
Member
posted Hide Post
I had done something similar late Friday with a

SUM FST.SALARY
BY HIREDATE

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.

Thank you.


Version: 7.7.3
Windows 7
PDF, Excel, HTML
 
Posts: 13 | Registered: December 26, 2011Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [solved] max value line in line graph

Copyright © 1996-2018 Information Builders, leaders in enterprise business intelligence.