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 ENDThis message has been edited. Last edited by: getit,
App Studio Version 8202 windows Platform SQL Server 2008/2012
June 10, 2010, 01:55 PM
Prarie
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
June 10, 2010, 02:14 PM
getit
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
June 10, 2010, 10:44 PM
Waz
Becuase your sort conditions are different, I don't think it will work.