Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Combine Bar & Line Graph
Go
New
Search
Notify
Tools
Reply
  
[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: 179 | Location: TX | Registered: January 22, 2007Reply With QuoteReport 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, 2005Reply With QuoteReport 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: 179 | Location: TX | Registered: January 22, 2007Reply With QuoteReport 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.05OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Know The Code

 
Posts: 6074 | Location: Land of the Darug people, Terra Australis Incognita | Registered: October 31, 2006Reply With QuoteReport 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: 3 | Registered: March 29, 2019Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Combine Bar & Line Graph

Copyright © 1996-2018 Information Builders, leaders in enterprise business intelligence.