Focal Point
Dual Axis Graph - Line Marker and Missing Value Issues

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/2121020171

June 07, 2006, 02:34 PM
Suzanne
Dual Axis Graph - Line Marker and Missing Value Issues
Series 0 on Y1 (Bar)
Series 1 on Y2 (Line)
Series 2 on Y2 (Would like to show points only when value is available and without connecting the points.)

Issue 1:
I need to connect the line markers for series one, but not for series two. I have tried the following code, but both remain connected.
setConnectLineMarkers(getSeries(1),(true));
setConnectLineMarkers(getSeries(2),(false));

Issue2:
When the value is not available, 0 is being graphed. I have set VZERO=OFF and setFillMissingData(0), but points are still graphed as 0.


Any help will be greatly appreciated.

Thanks!


WF 766
Win2K
June 08, 2006, 03:36 AM
Tony A
Suzanne,

Below is a sample of code the I gave to allow max and min point being shown witin a graph. It has three series with the second and third only showing point when they exist. The code you need for not showing point when they do not physically exist is the VZERO setting - note that the values are set to missing as opposed to 0 when you don't want them to be shown.

No doubt J.G. will be along in a minute with the various java codes to change the settings etc. but this might give you a start Smiler
TABLE FILE CAR
SUM MAX.RCOST
    MIN.RCOST
ON TABLE SAVE AS MAXMIN FORMAT ALPHA
END
-RUN
-READ MAXMIN &MaxRcost.I7. &MinRcost.I7.
-RUN
GRAPH FILE CAR
SUM RCOST
    COMPUTE IS_MAX/D12.2 MISSING ON = IF RCOST EQ &MaxRcost THEN RCOST ELSE MISSING; AS 'Max'
    COMPUTE IS_MIN/D12.2 MISSING ON = IF RCOST EQ &MinRcost THEN RCOST ELSE MISSING; AS 'Min'
BY MODEL
ON GRAPH SET GRAPHEDIT OFF
ON GRAPH SET 3D OFF
ON GRAPH SET VZERO OFF
ON GRAPH SET GRAPHSTYLE *
setGraphType(41);
setMarkerSize(0,0);
ENDSTYLE
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 
June 20, 2006, 10:24 AM
Suzanne
Tony, thanks so much for your reply. I had to take a little break from this graph. I still can't get it to do what I need. I did find that in a different graph (VLINE), I was able to change the setLineWidth to keep the line from appearing, but the command does not seem to work for the VBAR2AX.

I had put in a request to customer support regarding gaps and the VZERO command. I received the following response from customer support - "Gaps with line graphs are not allowed. In this case VZERO or setFillMissingData(0) would not be able to help you. We have a graph type called scatter that resembles something you want to acomplish. However, scatter type graph can not be positioned on the same coordinate system as bar/line chart. The only acceptable substitutions are bars, lines and area graphs. Let me research it further to see if I can find any workarounds for this issue."

Thanks again for your help.


WF 766
Win2K