Focal Point
[SOLVED]Remove 0's in Line Graph

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

June 21, 2016, 10:23 AM
Litz26
[SOLVED]Remove 0's in Line Graph
Hi everyone,

Still pretty new here, thanks for all your help!

So I have a line graph that plots current year and prior year data (Jan - Dec) in a PDF. I have it working, but would like to remove the plot points for the current year when they are 0. For example, I want it to plot all of the prior year (2015), but for current year (2016) I only want it to plot what has data. Currently, once it gets to June it drops down to zero, but I don't want to see that. I've tried several things I've found on here but have had no luck. I tried recreating something similar with the Car file (Seats would be prior year, Accel would be current year because it has 0's, Model would be Months).

Thanks again!


GRAPH FILE CAR
SUM
ACCEL
SEATS
BY HIGHEST ACCEL NOPRINT
BY MODEL
ON GRAPH PCHOLD FORMAT PDF
ON GRAPH SET VZERO ON
ON GRAPH SET HTMLENCODE ON
ON GRAPH SET GRAPHDEFAULT OFF
ON GRAPH SET ARGRAPHENGIN JSCHART
ON GRAPH SET GRMERGE ADVANCED
ON GRAPH SET GRMULTIGRAPH 0
ON GRAPH SET GRLEGEND 0
ON GRAPH SET GRXAXIS 2
ON GRAPH SET LOOKGRAPH VLINE
ON GRAPH SET STYLE *

*GRAPH_SCRIPT
setPieDepth(0);
setPieTilt(0);
setDepthRadius(0);
setCurveFitEquationDisplay(false);
setPlace(true);
setUseSeriesShapes(true);
setMarkerSizeDefault(25);
*END
TYPE=REPORT, TITLETEXT=&WF_TITLE.QUOTEDSTRING, $
*GRAPH_SCRIPT
*END
ENDSTYLE
END
-RUN

This message has been edited. Last edited by: <Emily McAllister>,


WebFOCUS 8
Windows, All Outputs
June 21, 2016, 11:27 AM
susannah
try to set your data element to MISSING
DEFINE FILE CAR
SEATSM/I5 MISSING ON = IF SEATS EQ 0 THEN MISSING ELSE SEATS;
END
...then plot SEATSM rather than SEATS
..then you might want to use not only a line but also a marker on your graf so that isolated datapoints would appear with their marker. oh..i see you've got marker referenced already. good.




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
June 21, 2016, 11:45 AM
Litz26
YES! I thought I tried that and it didn't work but I must have messed something up! Perfect! Thanks!


WebFOCUS 8
Windows, All Outputs