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     [CLOSED] VZERO and missing data at end of Graph

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] VZERO and missing data at end of Graph
 Login/Join
 
Platinum Member
posted
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, 2003Report This Post
Expert
posted Hide Post
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


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6349 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Platinum Member
posted Hide Post
Unfortunately that's not going to work for the particular graph I'm working with, as the values for Jan and Feb on my graph are 0.

This technique would not show those values either.

Is there some definition somewhere that explains why this won't work as I think it's supposed to, or is this a bug I need to raise with IB?


WF 7.6.11
Output: HTML, PDF, Excel
 
Posts: 123 | Location: UK | Registered: October 09, 2003Report This Post
Expert
posted Hide Post
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


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6349 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report 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     [CLOSED] VZERO and missing data at end of Graph

Copyright © 1996-2020 Information Builders