Focal Point
[CLOSED] Adv. Graph and values that are out of range

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/3207053716

March 02, 2012, 08:34 AM
Wep5622
[CLOSED] Adv. Graph and values that are out of range
I am implementing a bar-graph that only displays a limited range of the values on the Y-axis. However, some values lie outside of that range, but they get clipped by the GRAPH engine to stay within range.

The problem I'm facing is that in the result it's impossible to see the difference between a value that's just within range and one that is quite a bit out of range! Both have their bars closed.

Is there a way to clearly show that a displayed value (bar) is clipped?

In below sample code, you can see in the bottom table that the values for BMW, DATSUN, MASERATI and TOYOTA were clipped (> +/-15%), while the value for ALFA ROMEO looks exactly the same but lies within the displayed range:
-* File relative.fex
-*INTERNAL_PROPERTIES$fieldDisplayMode=label;OBJECTID=GLOBAL
-*INTERNAL_PROPERTIES$enablePreview=true;OBJECTID=GLOBAL
-*INTERNAL_PROPERTIES$prefixDisplayMode=;OBJECTID=GLOBAL
-*INTERNAL_PROPERTIES$GlobalRecordLimit=500;OBJECTID=GLOBAL
-*INTERNAL_PROPERTIES$SampleData=false;OBJECTID=GLOBAL
GRAPH FILE CAR
-* Created by Advanced Graph Assistant
SUM
     COMPUTE Relative/D12.2% = 100 * (DEALER_COST - (RETAIL_COST - 1000)) / DEALER_COST;

BY CAR.COMP.CAR
ON GRAPH PCHOLD FORMAT PNG
ON GRAPH SET GRAPHDEFAULT OFF
ON GRAPH SET VZERO OFF
ON GRAPH SET HTMLENCODE ON
ON GRAPH SET HAXIS 250
ON GRAPH SET VAXIS 405
ON GRAPH SET UNITS CM
ON GRAPH SET LOOKGRAPH HBAR
ON GRAPH SET 3D OFF
ON GRAPH SET GRMERGE ADVANCED
ON GRAPH SET GRMULTIGRAPH 0
ON GRAPH SET GRLEGEND 0
ON GRAPH SET GRXAXIS 1
ON GRAPH SET GRAPHSTYLE *
setTemplateFile("/images/tdg/template/IBISouthWestern.txt");
setReportParsingErrors(false);
setSelectionEnableMove(false);
setTransparentBorderColor(getSeries(1),true);
setTransparentBorderColor(getChartBackground(),true);
setLineWidth(getO1AxisLine(),0);
setFillColor(getO1MajorGridColorBand2(),new Color(225,225,225));
setDisplay(getO1MajorGridColorBand2(),true);
setFontSizeAbsolute(getO1Label(),true);
setFontSizeInPoints(getO1Label(),8);
setColorMode(1);
setFillColor(getSeries(0),new Color(128,255,0));
setDepthRadius(0);
setDepthAngle(0);
setRiserWidth(30);
setScaleMinAuto(getY1Axis(),false);
setScaleMin(getY1Axis(),-15);
setScaleMaxAuto(getY1Axis(),false);
setScaleMax(getY1Axis(),15);
setDisplay(getY1ZeroLine(),true);
setLineWidth(getY1ZeroLine(),0);
setGridStepAuto(getY1MajorGrid(),false);
setGridStep(getY1MajorGrid(),15);
setGridStyle(getY1MajorGrid(),3);
setDisplayOffScale(getY1Axis(),true);
setAxisDescending(getY1Axis(),false);
setLogScaleBase(getY1Axis(),2.0);
setLogScale(getY1Axis(),true);
setTransparentFillColor(getFrame(),true);
setTransparentBorderColor(getFrame(),true);
setDisplay(getO1AxisLine(),false);
setDisplay(getO1MajorGrid(),false);
setPlace(true);
setTransparentBorderColor(getSeries(0),false);
setCurveFitEquationDisplay(false);
setDisplay(getDataText(0),false);
setFillType(getSeries(0), 1);
ENDSTYLE
END
-RUN

TABLE FILE CAR
SUM 
     COMPUTE Relative/D12.2% = 100 * (DEALER_COST - (RETAIL_COST - 1000)) / DEALER_COST;
BY 'CAR.COMP.CAR'
ON TABLE NOTOTAL
ON TABLE SET STYLE *
     UNITS=CM,
     SQUEEZE=ON,
	 GRID=OFF,
     ORIENTATION=PORTRAIT,
$
TYPE=REPORT,
     FONT='ARIAL',
     SIZE=9,
     COLOR='BLACK',
     STYLE=NORMAL,
$
TYPE=DATA,
     BACKCOLOR=( 'WHITE' RGB(225 225 225) ),
$
TYPE=TITLE,
     BACKCOLOR='SILVER',
     STYLE=BOLD,
$
ENDSTYLE
END

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


WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010
: Member of User Group Benelux :
March 14, 2012, 03:49 PM
Kerry
Hi Wep5622,

By any chance, is this issue resolved? If not, you may want to open a case with Customer Support Services for assistance and research. The phone number is 1-800-736-6130, or access online at InfoResponse.

Cheers,

Kerry


Kerry Zhan
Focal Point Moderator
Information Builders, Inc.