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] Side by Side Bar Graph

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Side by Side Bar Graph
 Login/Join
 
Platinum Member
posted
I didn't know how to move a post from one Forum to another so here is what was posted on the other Forum.

This isn't what I need. This give 2 bar graphs side by side. I need one graph with 2 bars, one for each year, next to each other, like the Excel example shows. http://i35.tinypic.com/2a7zbbq.jpg Excel did it very easily, so I would think WebFOCUS could. I'm missing something.

Thanks,



Rick Man
Silver Member
Posted August 19, 2008 04:50 PM
How can I create a graph in WebFOCUS like the one I was able to create in Excel; i.e. where the years are side by side in ONE graph not in two separate graphs.
Thanks

http://i38.tinypic.com/2dbuet2.gif
http://i35.tinypic.com/2a7zbbq.jpg

7.6.2
Windows NT
Excel, HTML, PDF

Posts: 33 | Registered: March 31, 2008

PBrightwell
Guru
Posted August 20, 2008 09:01 AM Hide Post
Before your stylesheet add
ON GRAPH SET GRMERGE ON

Pat
WF 5.3.2 AIX, NT, AS/400, Focus AS/400, AIX, Oracle, JDE, DB2, Lotus Notes
Posts: 429 | Location: TX | Registered: September 25, 2007

Ignored post by PBrightwell posted August 20, 2008 09:01 AM Show Post

GinnyJakes
Virtuoso
Posted August 20, 2008 09:31 AM Hide Post
Rick,

Here is an example:


GRAPH FILE CENTURYSALES
SUM LINEPRICE
BY MONTH
ACROSS YEAR
ON GRAPH SET LOOKGRAPH BAR
ON GRAPH SET GRMERGE ON
END


BTW, you might want to post in the FOCUS/WebFOCUS forum as posts here might not get viewed for awhile.

Ginny
---------------------------------
Prod: WF 7.6.5 with 7.6.5 WFRS; AIX 5.2; WebSphere 6.1.0.15
Dev: WF 7.6.5 with 7.6.5 WFRS; AIX 5.2; WebSphere 6.1.0.15
Primarily self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable
Posts: 1148 | Location: BNSF: Fort Worth, TX | Registered: April 05, 2006

This message has been edited. Last edited by: Rick Man,


Reporting Server 7.6.10
Dev. Studio 7.6.8
Windows NT
Excel, HTML, PDF
 
Posts: 204 | Registered: March 31, 2008Report This Post
Expert
posted Hide Post
Hi Rick and all,

FYI, here is the topic that Rick is referring to:

https://forums.informationbuilders.com/eve/forums/a/tpc/...841011692#8841011692

Cheers,

Kerry


Kerry Zhan
Focal Point Moderator
Information Builders, Inc.
 
Posts: 1948 | Location: New York | Registered: November 16, 2004Report This Post
Expert
posted Hide Post
GRAPH FILE CENTURYSALES
SUM LINEPRICE
BY MONTH
ACROSS YEAR
ON GRAPH SET LOOKGRAPH BAR
ON GRAPH SET GRMERGE ON
END

I re-tooled it a bit. Does this work better? Or am I still missing the boat?


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
 
Posts: 2723 | Location: Ann Arbor, MI | Registered: April 05, 2006Report This Post
Expert
posted Hide Post
quote:
GRAPH FILE CENTURYSALES

whoa...where is centurysales? its not in ibisamp. buy me a vowel?

answered my own question...its in ibidemo in devstu . aha.




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
Expert
posted Hide Post
Susannah,

Since you are on Unix like I am, you can upload the directory to your backend Unix box. There is a program to reload the databases. A lot of the tutorials use centurysales and the file has lots of data in it. Great for testing.


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
 
Posts: 2723 | Location: Ann Arbor, MI | Registered: April 05, 2006Report This Post
Platinum Member
posted Hide Post
Thanks Kerry.
Thanks Ginny. I don't have any data in that file.
I opened a case with IBI, #42422997, and this is what they said:

Take this code:

GRAPH FILE FINANCE
SUM AMOUNT AS 'AMOUNT'
ACROSS YEAR AS 'YEAR'
BY ACCOUNT AS 'ACCOUNT'
HEADING
"FINANCE GRAPH1"
ON GRAPH SET LOOKGRAPH BAR
ON GRAPH SET GRMERGE ON
ON GRAPH PCHOLD FORMAT GIF
ON GRAPH SET GRAPHSTYLE *
setLegendPosition(2);
setFontName(getLegendText(),"ARIAL");
ENDSTYLE
END

And flip flop the ACROSS and BY fields:

GRAPH FILE FINANCE
SUM AMOUNT AS 'Amount'
ACROSS ACCOUNT AS 'Account'
BY YEAR AS 'Year'
HEADING
"FINANCE GRAPH2"
ON GRAPH SET LOOKGRAPH BAR
ON GRAPH SET GRMERGE ON
ON GRAPH PCHOLD FORMAT GIF
ON GRAPH SET GRAPHSTYLE *
setLegendPosition(2);
setFontName(getLegendText(),"ARIAL");
ENDSTYLE
END

It works.


Reporting Server 7.6.10
Dev. Studio 7.6.8
Windows NT
Excel, HTML, PDF
 
Posts: 204 | Registered: March 31, 2008Report This Post
Expert
posted Hide Post
Which is exactly what I did if you compare my two sets of code.


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
 
Posts: 2723 | Location: Ann Arbor, MI | Registered: April 05, 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     [SOLVED] Side by Side Bar Graph

Copyright © 1996-2020 Information Builders