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     [ON HOLD] Bar + Line graph question

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[ON HOLD] Bar + Line graph question
 Login/Join
 
Gold member
posted
Hi,

A hopefully simple question that I could not find an answer for in FP or the docs.

I have a VBAR graph with 2 series. Series 0 should be bars, series 1 a line. All shows OK EXCEPT for the series 1, which instead of showing just the line shows bars as well.

Code:

  
SET GRMERGE=ON

GRAPH FILE TESTFILE
SUM    RUNTIME AS ''  TOT.RUNTIME AS ''
ACROSS SCHEDDATE AS ''
BY GROUP1 

ON GRAPH SET LOOKGRAPH VBAR 
ON GRAPH SET GRAPHEDIT SERVER
ON GRAPH SET BARNUMB OFF
ON GRAPH SET 3D OFF
ON GRAPH SET VZERO ON
ON GRAPH SET GRID ON
ON GRAPH SET GRWIDTH 0
ON GRAPH SET HAXIS 1200
ON GRAPH SET VAXIS 640
ON GRAPH SET GRAPHSTYLE *

setAxisAssignment(0,0);
setAxisAssignment(1,0);
setSeriesType(1,2);
setPlace(true);
ENDSTYLE
...


Any ideas on how to keep the line for series 1 while removing its bars?

This message has been edited. Last edited by: Microfich,


WebFOCUS 8105
Windows;
DB2, UDB, SQL Server, Oracle
FOCUS-WebFOCUS since 1981
 
Posts: 84 | Registered: December 13, 2005Report This Post
Virtuoso
posted Hide Post
You have WebFOCUS 762.
That is already equipped with the Advanced Graph Assistant.
You can do this very easily with that tool. Per series you can indicate what type of graph it should be, it works! Check out this tool, I have learned a lot about graphing using it.


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
 
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007Report This Post
Gold member
posted Hide Post
quote:
ply

Unfortunately, AGA is not properly installed. Admin is on it but I have to code graphs by hand.

Shouldn't setSeriesType(1,2) take care of it? What am I missing?


WebFOCUS 8105
Windows;
DB2, UDB, SQL Server, Oracle
FOCUS-WebFOCUS since 1981
 
Posts: 84 | Registered: December 13, 2005Report This Post
Virtuoso
posted Hide Post
Ok, bad enough that you don't have AGA. So I have create a small example where I plot the dcost and rcost from the car file in one graph. One bar, one line. The code is:
GRAPH FILE CAR
-* Created by Advanced Graph Assistant
SUM CAR.BODY.DEALER_COST
CAR.BODY.RETAIL_COST
BY CAR.BODY.BODYTYPE
ON GRAPH PCHOLD FORMAT PNG
ON GRAPH SET HTMLENCODE ON
ON GRAPH SET GRAPHDEFAULT OFF
ON GRAPH SET VZERO OFF
ON GRAPH SET HAXIS 770
ON GRAPH SET VAXIS 405
ON GRAPH SET UNITS PIXELS
ON GRAPH SET LOOKGRAPH VBAR
ON GRAPH SET GRMERGE ADVANCED
ON GRAPH SET GRMULTIGRAPH 0
ON GRAPH SET GRLEGEND 0
ON GRAPH SET GRXAXIS 1
ON GRAPH SET GRAPHSTYLE *
setTemplateFile("/images/tdg/template/IBISouthWestern.txt");
setReportParsingErrors(false);
setSelectionEnableMove(false);
setDepthRadius(5);
setTransparentBorderColor(getChartBackground(),true);
setTransparentBorderColor(getSeries(0),true);
setTransparentBorderColor(getSeries(1),true);
setTransparentBorderColor(getSeries(2),true);
setTransparentBorderColor(getSeries(3),true);
setTransparentBorderColor(getSeries(4),true);
setTransparentBorderColor(getSeries(5),true);
setTransparentBorderColor(getSeries(6),true);
setTransparentBorderColor(getSeries(7),true);
setTransparentBorderColor(getSeries(8),true);
setTransparentBorderColor(getSeries(9),true);
setTransparentBorderColor(getSeries(10),true);
setPlace(true);
setSeriesType(getSeries(0),2);
ENDSTYLE
END
Hope this helps ...


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
 
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007Report This Post
Gold member
posted Hide Post
Still not working.

It's the ACROSS that's screwing things up.


WebFOCUS 8105
Windows;
DB2, UDB, SQL Server, Oracle
FOCUS-WebFOCUS since 1981
 
Posts: 84 | Registered: December 13, 2005Report This Post
Virtuoso
posted Hide Post
Guess you right. If I try to do that with the car file (by country across car) I end up with just as many series as there are car brands. You just can't create a line for that. Is there some possibility that you can do it without across?


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
 
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007Report This Post
Gold member
posted Hide Post
I'll keep thrashing at it.

C'mon GRAPH experts!


WebFOCUS 8105
Windows;
DB2, UDB, SQL Server, Oracle
FOCUS-WebFOCUS since 1981
 
Posts: 84 | Registered: December 13, 2005Report This Post
Virtuoso
posted Hide Post
I think if you:

  • turn that ACROSS into a BY, and
  • use GRAXIS 2,


Then you'll actually get two distinct series along the same axis and you'd be able to specify their types (using the advanced graph variant of course) as mentioned by others.

I'm still fairly new to WebFOCUS, but in my experience it's often easier to graph a result if the different graph components each have their own column than to try to combine multiple graphs into a multigraph.

I try to avoid ACROSS in graphs, as it doesn't really add anything and turns graphs into a nightmare (See my thread: Graphing problem with double across for X-axis (Updated))!

Multiple BY's are much easier to deal with IMHO.


WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010
: Member of User Group Benelux :
 
Posts: 1669 | Location: Enschede, Netherlands | Registered: August 12, 2010Report 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     [ON HOLD] Bar + Line graph question

Copyright © 1996-2020 Information Builders