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] Combine Bar & Line Graph

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Combine Bar & Line Graph
 Login/Join
 
Platinum Member
posted
I have seen many other posts on this topic , but could not find a solution.
Is there a way to combine these two graphs into one.?

GRAPH FILE CAR
SUM
SALES
BY CAR
ACROSS SEATS
ON GRAPH SET GRMERGE ON
ON GRAPH SET LOOKGRAPH VBRSTK1
END

GRAPH FILE CAR
SUM
COMPUTE AMT/D30 = RETAIL_COST*2;
ACROSS SEATS
ON GRAPH SET GRMERGE ON
ON GRAPH SET LOOKGRAPH LINE
END

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


App Studio Version 8202
windows Platform
SQL Server 2008/2012
 
Posts: 183 | Location: TX | Registered: January 22, 2007Report This Post
Virtuoso
posted Hide Post
Here is an example from the tech site
 Refer to the following manual:
'Perspective for Java Programmers Manual'DN: 2100945.0901
 
http://techsupport.ibi.com/ibi..._manuals/pfj_man.pdf
 
Specifically the sections on:
setAxisAssignment()    - PDF page 566
setSeriesType()    - PDF page 683
 
Here is an example FEX:
GRAPH FILE CAR
SUM  SALES DEALER_COST RETAIL_COST COMPUTE MARGIN/D12.2=(RC-DC)/DC;
BY HIGHEST TOTAL RETAIL_COST
BY CAR
ON GRAPH SET GRMERGE ON
ON GRAPH SET GRAPHEDIT SERVER
ON GRAPH SET BARNUMB OFF
ON GRAPH SET 3D OFF
ON GRAPH SET VZERO ON
ON GRAPH SET GRID OFF
ON GRAPH SET GRAPHSTYLE *
setGraphType(20);
setForceSeriesAbsolute(getSeries(0),false);
setForceSeriesAbsolute(getSeries(1),false);
setForceSeriesAbsolute(getSeries(2),true);
setForceSeriesAbsolute(getSeries(3),true);
setAxisAssignment(0,0);
setSeriesType(0,1);
setAxisAssignment(1,0);
setSeriesType(1,1);
setAxisAssignment(2,1);
setSeriesType(2,2);
setAxisAssignment(3,1);
setSeriesType(3,2);
setY1LabelDisplay(true);
setY1LabelDisplay(true);
setY1AxisSide(0);
setY1MajorGridDisplay(true);rue);;);
setY1MajorGridStyle(0);000,;alse);ue);
setY1MinorGridDisplay(false);w Color(255,255,0));
setTextFormatPreset(getY1Label(),-1);;
setTextFormatPattern(getY1Label(),"#.##");
setY2LabelDisplay(true);
setY2AxisSide(1);
setY2MajorGridDisplay(true);
setY2MajorGridStyle(2);
setY2MinorGridDisplay(false);
setTextFormatPreset(getY2Label(),2);
 -* Y2 Axis Scale is synchronized with Y1 since the data points are similar
setScaleMaxAuto(getY2Axis(), false);
setScaleMax(getY2Axis(),.3);
setScaleMinAuto(getY2Axis(), false);
setScaleMin(getY2Axis(),.15);
setY2MajorGridStepAuto(false);
setY2MajorGridStep(.01);
setDataTextDisplay(true);
setCustomDataText(getSeries(0), true);
setCustomDataText(getSeries(1), true);
setCustomDataText(getSeries(2), true);
setCustomDataText(getSeries(3), true);
setDisplay(getDataText(0), false);
setDisplay(getDataText(1), false);
setDisplay(getDataText(2), false);
setDisplay(getDataText(3), true);
setTextFormatPreset(getDataText(3),2);
setRiserBorderMode(1);
setSeriesDefaultTransparentBorderColor(true);
setUseSeriesBorderDefaults(true);
setFillType(getSeries(3),1);
setFillColor(getSeries(3), new Color(255,255,0));
setLegendDisplay(true);
setFillType(getFrame(),2);
setTransparentBorderColor(getFrame(),true);
setPlace(true);
ENDSTYLE
ON GRAPH SET STYLE *
     PAGESIZE='Letter',
     LEFTMARGIN=0.250000,
     RIGHTMARGIN=0.250000,
     TOPMARGIN=0.250000,
     BOTTOMMARGIN=0.250000,
     SQUEEZE=ON,
     ORIENTATION=PORTRAIT,
$
TYPE=REPORT,
     GRID=OFF,
     FONT='TIMES NEW ROMAN',
     SIZE=10,
     BACKCOLOR='NONE',
     STYLE=NORMAL,
$
ENDSTYLE
END
 
 
Posts: 1903 | Location: San Antonio | Registered: February 28, 2005Report This Post
Platinum Member
posted Hide Post
Yes, this one doesn't have any across, My dilemma is how to hande the across field in first graph which stacks the columns based on the by field ,where as second one just shows a total line.


App Studio Version 8202
windows Platform
SQL Server 2008/2012
 
Posts: 183 | Location: TX | Registered: January 22, 2007Report This Post
Expert
posted Hide Post
Becuase your sort conditions are different, I don't think it will work.


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: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Member
posted Hide Post
Add at the end of second graph
...ENDSTYLE
...END

-RUN
-HTMLFORM BEGIN











!IBI.FIL.ONE;






!IBI.FIL.TWO;





-HTMLFORM END
-EXIT


WebFOCUS 8.02
 
Posts: 5 | Registered: March 29, 2019Report 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] Combine Bar & Line Graph

Copyright © 1996-2020 Information Builders