Focal Point Banner


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.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED]Remove 0's in Line Graph

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED]Remove 0's in Line Graph
 Login/Join
 
Member
posted
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
 
Posts: 11 | Registered: June 16, 2015Report This Post
Expert
posted Hide Post
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
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report This Post
Member
posted Hide Post
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
 
Posts: 11 | Registered: June 16, 2015Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED]Remove 0's in Line Graph

Copyright © 1996-2020 Information Builders