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'm creating a line graph that needs to show Jan - Dec of this year on it. As its only March there is only data for Jan and Feb, I'm using the COLUMNS command to force the display of the columns with missing data but am having a problem with VZERO.
As there is no data, I want the line to finish at Feb, if I use VZERO = OFF months Mar - Dec disappear, if I put VZERO on they display but with 0 value. If I change the column order so that Jan is first and Feb is last it will show all the other months with missing, so its only where the missing values are at the end of the graph, is there a setting I need somewhere to make this work?
To explain - If I put the columns in this order USA and SPAIN are missing
GRAPH FILE CAR
SUM
DEALER_COST
ACROSS COUNTRY COLUMNS
'ENGLAND' AND
'FRANCE' AND
'ITALY' AND
'JAPAN' AND
'W GERMANY' AND
'USA' AND
'SPAIN'
ON GRAPH SET LOOKGRAPH VLINE
ON GRAPH SET VZERO OFF
ON GRAPH SET GRAPHSTYLE *
setFillMissingData(0);
ENDSTYLE
END
If I put the columns in this order they are correctly displayed.
GRAPH FILE CAR
SUM
DEALER_COST
ACROSS COUNTRY COLUMNS
'ENGLAND' AND
'USA' AND
'SPAIN' AND
'FRANCE' AND
'ITALY' AND
'JAPAN' AND
'W GERMANY'
ON GRAPH SET LOOKGRAPH VLINE
ON GRAPH SET VZERO OFF
ON GRAPH SET GRAPHSTYLE *
setFillMissingData(0);
ENDSTYLE
END
This message has been edited. Last edited by: Kerry,
WF 7.6.11 Output: HTML, PDF, Excel
Posts: 123 | Location: UK | Registered: October 09, 2003
One way is to set the values out of the range, and not show them
GRAPH FILE CAR
SUM
DEALER_COST
ACROSS COUNTRY COLUMNS
'ENGLAND' AND
'FRANCE' AND
'ITALY' AND
'JAPAN' AND
'W GERMANY' AND
'USA' AND
'SPAIN'
ON GRAPH SET LOOKGRAPH VLINE
ON GRAPH SET GRAPHSTYLE *
setY1ScaleMinAuto(false);
setY1ScaleMin(1.0);
setDisplayOffScale(getY1Axis(),false);
ENDSTYLE
END
Another option is to determine the missing data, set it to an amount that will not be in the graph, and stop it from displaying.
e.g.
TABLE FILE CAR
SUM
COMPUTE DLR_COST/D7 MISSING ON = DEALER_COST ;
BY COUNTRY ROWS
'ENGLAND' OVER
'FRANCE' OVER
'ITALY' OVER
'JAPAN' OVER
'W GERMANY' OVER
'USA' OVER
'SPAIN'
ON TABLE HOLD AS EXTR FORMAT ALPHA
END
DEFINE FILE EXTR
DCOST/D16 = IF DLR_COST IS MISSING THEN -1 ELSE DLR_COST ;
END
GRAPH FILE EXTR
SUM
DCOST
ACROSS E01 COLUMNS
'ENGLAND' AND
'FRANCE' AND
'ITALY' AND
'JAPAN' AND
'W GERMANY' AND
'USA' AND
'SPAIN'
ON GRAPH SET LOOKGRAPH VLINE
-*ON GRAPH SET VZERO OFF
ON GRAPH SET GRAPHSTYLE *
setY1ScaleMinAuto(false);
setY1ScaleMin(0.0);
setDisplayOffScale(getY1Axis(),false);
ENDSTYLE
END