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     Bar Graph Series/Grouping

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Bar Graph Series/Grouping
 Login/Join
 
Member
posted
Anyone know how to GROUP bars? I need to group PERCENTS together, and group COUNTS together on a bar chart. Here's and example:
GRAPH FILE CAR
SUM HEIGHT
COMPUTE HWPCT/D6.1 = HEIGHT/WIDTH * 100;
BY CAR AS ''
WHERE CAR EQ 'JENSEN' OR 'AUDI'
ON GRAPH SET LOOKGRAPH HBAR
ON GRAPH SET GRAPHEDIT SERVER
ON GRAPH SET BARNUMB ON
ON GRAPH SET 3D OFF
ON GRAPH SET VZERO ON
ON GRAPH SET GRID ON
ON GRAPH SET GRAPHSTYLE *
setDepthRadius(0);
-* setData parms are: (Series number, Group number, VALUE)
-*setData(0,JENSEN,HEIGHT);
-*setData(0,AUDI,HWPCT);
-*setData(0,2,2);
-*setData(0,3,3);
-*setData(1,JENSEN,HEIGHT);
-*setData(1,AUDI,HWPCT);
-*setData(1,2,12);
-*setData(1,3,13);
setDataRangeToExtent();
setSeriesLabel(0,"Count");
setSeriesLabel(1,"Percent");
setGroupLabel(0,"Dashboard Met 1");
setGroupLabel(1,"Dashboard Met 2");
-*setGroupLabel(2,"Group 2");
-*setGroupLabel(3,"Group 3");
ENDSTYLE
END

It produces a BAR GRAPH with COUNT, PERCENT, COUNT, PERCENT,...in groupings. I would like it to produce a BAR CHART with COUNT,COUNT, then PERCENT, PERCENT. That is, COUNTS grouped together, and PERCENTS grouped together.

Any ideas?
Thanks in advance.


WF 5.3.3 on AIX accessing DB2
 
Posts: 2 | Registered: March 29, 2006Report This Post
Expert
posted Hide Post
Hi, Lee.

Alternate master with OCCURS:

TABLE FILE CAR
SUM HEIGHT
COMPUTE HWPCT/D6.1 = HEIGHT/WIDTH * 100;
BY CAR AS ''
WHERE CAR EQ 'JENSEN' OR 'AUDI'
ON TABLE HOLD
END
DEFINE FILE HOLD
CNTFLAG/I1=1;
PCTFLAG/I1=2;
END
TABLE FILE HOLD
PRINT CNTFLAG HEIGHT PCTFLAG HWPCT
BY CAR
ON TABLE HOLD AS HOLD1 FORMAT ALPHA
END

You'd have to make the HEIGHT and the HWPCT the same format. Then in the alternate master what is currently cntflag and pctflag would have the same name.

SEGNAME=CNTSEG, SEGTYPE=S1,OCCURS=2 (in this case)
FIELDNAME=CNTFLAG,...
FIELDNAME=HFIELD...

Then graph using that master.

Just an idea. Let me know if you need more detail. I haven't worked the whole thing out.


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     Bar Graph Series/Grouping

Copyright © 1996-2020 Information Builders