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     Active Line Graph, hiding a BY field

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Active Line Graph, hiding a BY field
 Login/Join
 
Silver Member
posted
Hello,

What I am using:
Active Technologies (AHTML), WF is converting it to a Line graph using the property setting in HTML Composer (Active Report Type = Line)

My Issue:
My graph is BY YEAR & BY QUARTER. The graph goes back to 2002, so it plots many lines. I would like to remove the "title" or "heading" for Quarter on the output. But I still require to plot the values.

I have tried the following:
#1) In the style area, for the column, I set HIDE=ON. This hides the column, but also doesn't plot Quarters 2-4.
#2) I have tried changing the size, no luck
#3) I have tried creating my own DEFINE for the values. Again, doesn't plot quarters 2-4.

My current code:
GRAPH FILE NICMKRS
SUM
COMP1SUM
COMP2SUM
COMP3SUM
BY LOWEST THEYEAR
BY LOWEST THEQUARTER
WHERE THEYEAR EQ &theYear
WHERE THECOMPANY EQ &theCompany
ON GRAPH SET LOOKGRAPH LINE
ON GRAPH PCHOLD FORMAT AHTML
ON GRAPH SET STYLE *
TYPE=REPORT,
OBJECT=LEGEND,
LEGEND-VIEW=FLAT,
ARGRAPHENGINE=FUSION,
REPORT-VIEW=CHART,
CHART-TYPE=LINE,
ARREPORTSIZE=DIMENSION,
$
ENDSTYLE
END


Thank you for reading.


Application 1: 7.7.03, Windows
Application 2: 7.7.03, Unix
 
Posts: 37 | Registered: January 11, 2008Report This Post
Expert
posted Hide Post
BY LOWEST THEQUARTER AS ''


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
 
Posts: 1972 | Location: Centennial, CO | Registered: January 31, 2006Report This Post
Silver Member
posted Hide Post
Tom, Thank you for your suggestion.

I gave it a try this morning, I changed:
BY LOWEST THEQUARTER
to
BY LOWEST THEQUARTER AS ''

The outcome:
The graph X axis still shows the values of THEYEAR and THEQUARTER. The only change is to the Graph title, where THEQUARTER was changed to Column1 (must be the default).

Any additional suggestions?
 
Posts: 37 | Registered: January 11, 2008Report This Post
Silver Member
posted Hide Post
NOT A PERFECT EXAMPLE :-)

I built a similar graph using the CAR file...So with this example would it be possible to hide the MODEL on the X axis? But still plot SALES on the graph?


GRAPH FILE CAR
SUM
CAR.BODY.SALES
BY LOWEST CAR.COMP.CAR
BY LOWEST CAR.CARREC.MODEL
ON GRAPH SET LOOKGRAPH LINE
ON GRAPH PCHOLD FORMAT AHTML
ON GRAPH SET STYLE *
TYPE=REPORT,
OBJECT=LEGEND,
LEGEND-VIEW=FLAT,
ARGRAPHENGINE=FUSION,
REPORT-VIEW=CHART,
CHART-TYPE=LINE,
ARREPORTSIZE=DIMENSION,
$

ENDSTYLE
END
 
Posts: 37 | Registered: January 11, 2008Report This Post
Expert
posted Hide Post
I looked it up in Dev Studio Help: HEADING
  
TABLE FILE CAR
HEADING
""
SUM
DEALER_COST
RETAIL_COST
  COMPUTE PROFIT/P20.2MC = RETAIL_COST - DEALER_COST;
BY COUNTRY
BY CAR 
ON GRAPH SET LOOKGRAPH LINE
ON GRAPH PCHOLD FORMAT AHTML
ON GRAPH SET STYLE *
TYPE=REPORT,
OBJECT=LEGEND,
LEGEND-VIEW=FLAT,
REPORT-VIEW=CHART,
CHART-TYPE=LINE,
$
ENDSTYLE
END
-EXIT


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
 
Posts: 1972 | Location: Centennial, CO | Registered: January 31, 2006Report This Post
Expert
posted Hide Post
You are not using the code correctly, it's TABLE not GRAPH. The styling turns it into a Graph.

Still get the / though:

  
TABLE FILE CAR
HEADING
""
SUM 
CAR.BODY.SALES
BY LOWEST CAR.COMP.CAR
BY LOWEST CAR.CARREC.MODEL NOPRINT
ON GRAPH SET LOOKGRAPH LINE
ON GRAPH PCHOLD FORMAT AHTML
ON GRAPH SET STYLE *
TYPE=REPORT,
OBJECT=LEGEND,
LEGEND-VIEW=FLAT,
REPORT-VIEW=CHART,
CHART-TYPE=LINE,
$
ENDSTYLE
END
-EXIT


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
 
Posts: 1972 | Location: Centennial, CO | Registered: January 31, 2006Report This Post
Silver Member
posted Hide Post
Again, thank you for your help.

The problem with doing a NOPRINT, is that the graph doesn't plot those values....for example:

BY YEAR
BY QUARTER
Will plot the measure for 2011Q1, 2011Q2, 2011Q3, 2011Q4, 2012Q1...

BY YEAR
BY QUARTER
Will plot only the measure for 2011Q1, 2012Q1

The lines can be drastically different.
 
Posts: 37 | Registered: January 11, 2008Report This Post
Expert
posted Hide Post
  
TABLE FILE CAR
HEADING
""
SUM 
CAR.BODY.SALES
BY LOWEST CAR.COMP.CAR
BY CAR.CARREC.MODEL 
ON GRAPH SET LOOKGRAPH LINE
ON GRAPH PCHOLD FORMAT AHTML
ON GRAPH SET STYLE *
TYPE=REPORT,
OBJECT=LEGEND,
LEGEND-VIEW=FLAT,
REPORT-VIEW=CHART,
CHART-TYPE=LINE,
$
TYPE=REPORT, COLUMN='CAR.CARREC.MODEL',HIDE=ON, $

ENDSTYLE
END
-EXIT


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
 
Posts: 1972 | Location: Centennial, CO | Registered: January 31, 2006Report This Post
Silver Member
posted Hide Post
Hey Tom, I gave that a try again, the graph is generated but it doesn't plot the points correctly. It looks the same as the NOPRINT option.


I wonder if it is even possible...maybe I should open up a case.
 
Posts: 37 | Registered: January 11, 2008Report This Post
Expert
posted Hide Post
Yep


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
 
Posts: 1972 | Location: Centennial, CO | Registered: January 31, 2006Report This Post
Silver Member
posted Hide Post
I am putting together code that better represents my issue...using SALHIST...since support usually likes seeing the code.

I will post here, just in case if anyone is interested.
 
Posts: 37 | Registered: January 11, 2008Report This Post
Silver Member
posted Hide Post
To see the issue, run these side by side:

DEFINE FILE SALHIST
Employee1/D10.2 =IF PIN EQ '000000010' THEN OLDSALARY ELSE 0;
Employee2/D10.2 =IF PIN EQ '000000050' THEN OLDSALARY ELSE 0;
Employee3/D10.2 =IF PIN EQ '000000060' THEN OLDSALARY ELSE 0;
Employee4/D10.2 =IF PIN EQ '000000070' THEN OLDSALARY ELSE 0;
Year/YY = EFFECTDATE;
Quarter/Q = EFFECTDATE;
END

GRAPH FILE SALHIST
SUM
Employee1
Employee2
Employee3
Employee4
BY LOWEST Year
BY LOWEST Quarter
WHERE PIN IN ('000000010', '000000050', '000000060', '000000070')
ON GRAPH SET LOOKGRAPH LINE
ON GRAPH PCHOLD FORMAT AHTML
ON GRAPH SET STYLE *
TYPE=REPORT,
OBJECT=LEGEND,
LEGEND-VIEW=FLAT,
ARGRAPHENGINE=FUSION,
REPORT-VIEW=CHART,
CHART-TYPE=LINE,
ARREPORTSIZE=DIMENSION,
FONT='VERDANA',
$
ENDSTYLE
END


Second Report: Only difference is NOPRINT after Quarter

DEFINE FILE SALHIST
Employee1/D10.2 =IF PIN EQ '000000010' THEN OLDSALARY ELSE 0;
Employee2/D10.2 =IF PIN EQ '000000050' THEN OLDSALARY ELSE 0;
Employee3/D10.2 =IF PIN EQ '000000060' THEN OLDSALARY ELSE 0;
Employee4/D10.2 =IF PIN EQ '000000070' THEN OLDSALARY ELSE 0;
Year/YY = EFFECTDATE;
Quarter/Q = EFFECTDATE;
END

GRAPH FILE SALHIST
SUM
Employee1
Employee2
Employee3
Employee4
BY LOWEST Year
BY LOWEST Quarter NOPRINT
WHERE PIN IN ('000000010', '000000050', '000000060', '000000070')
ON GRAPH SET LOOKGRAPH LINE
ON GRAPH PCHOLD FORMAT AHTML
ON GRAPH SET STYLE *
TYPE=REPORT,
OBJECT=LEGEND,
LEGEND-VIEW=FLAT,
ARGRAPHENGINE=FUSION,
REPORT-VIEW=CHART,
CHART-TYPE=LINE,
ARREPORTSIZE=DIMENSION,
FONT='VERDANA',
$
ENDSTYLE
END
 
Posts: 37 | Registered: January 11, 2008Report 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     Active Line Graph, hiding a BY field

Copyright © 1996-2020 Information Builders