Focal Point
GRAPH with error-bars (or "whiskers")?

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

September 07, 2012, 09:49 AM
Wep5622
GRAPH with error-bars (or "whiskers")?
Hello all,

Another GRAPH question. Yeay!

I've been asked whether we can create a certain type of graph using WebFOCUS. The graph in question contains several lines for different articles based on measurements. Each measurement has an X-value and a resulting measured Y-value with a deviation range.

I need to plot these lines, with an error-bar for the low/high deviation on the measured Y-value. These error-bars are what's bothering me for whether WebFOCUS (7.6!) can do that.

Alternatively, does anyone have any experience sending graph requests off to an external tool, for example gnuplot? We're running into one limitation of the GRAPH engine after another, it's starting to look like an attractive option... Frowner

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


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 :
September 14, 2012, 10:27 AM
Kerry
Hi Wep5622,

From our graph expert: I am not aware of a way to accomplish the type graph you are asking for. And to answer the question of how to move graphs to a different graph language you would just table and hold the data to a format the other language can handle.

Cheers,

Kerry


Kerry Zhan
Focal Point Moderator
Information Builders, Inc.
September 14, 2012, 11:29 AM
susannah
Netherlands, the kind of graf you want is called Box & Whiskers.
I'm in 7.6.8 (antique, i know),
Open the Advanced Graf Assist tool.
It will show you the bar chart types by default.
pick the 1st one in the 2nd row.
they call it 'Error bar'
but it's Box & Whiskers.
You should be fine.




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
November 23, 2012, 07:41 AM
Wep5622
Aha, so they're called "Whiskers" then. Good to know.

Unfortunately, I need those whiskers on a line-graph instead of on a bar-graph.
Additionally, I need several lines with whiskers in a single graph.

It looks like this is impossible with the current graph engine...

Excel can create these graphs, so this is going to be a bit of a hard sell to the user.


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 :
November 23, 2012, 09:56 AM
Dave
Wep5622,

Might not be exactly what you want...
...but perhaps close enough?



-* some fake data
TABLE FILE CAR
	SUM 
		SALES
		COMPUTE LOW/D12 = SALES * AVE.SEATS / 7;
		COMPUTE HIGH/D12 = SALES * AVE.SEATS / 2;
	BY	CAR
ON TABLE HOLD AS TEST
END

-* graphed in adv.graph edit ( cleared out the junk to post it to focalpoint )

GRAPH FILE TEST
SUM HIGH
LOW
SALES
BY CAR
ON GRAPH PCHOLD FORMAT PNG
ON GRAPH SET HTMLENCODE ON
ON GRAPH SET GRAPHDEFAULT OFF
ON GRAPH SET VZERO OFF
ON GRAPH SET HAXIS 770
ON GRAPH SET VAXIS 405
ON GRAPH SET UNITS PIXELS
ON GRAPH SET LOOKGRAPH VLINE
ON GRAPH SET GRMERGE ADVANCED
ON GRAPH SET GRMULTIGRAPH 0
ON GRAPH SET GRLEGEND 0
ON GRAPH SET GRXAXIS 1
ON GRAPH SET GRAPHSTYLE *
setReportParsingErrors(false);
setSelectionEnableMove(false); 
setTransparentBorderColor(getSeries(0),true);
setTransparentBorderColor(getSeries(1),true);
setTransparentBorderColor(getSeries(2),true);
setDepthRadius(0); 
setUseSeriesShapes(true);
setPlace(true);
setFillColor(getSeries(0),new Color(255,0,0));
setLineWidth(getSeries(0),0);
setFillColor(getSeries(1),new Color(0,255,0));
setLineWidth(getSeries(1),0);
setMarkerShape(getSeries(1),17);
setMarkerShape(getSeries(0),17);
setMarkerSize(getSeries(1),75);
setMarkerSize(getSeries(0),75);
setMarkerShape(getSeries(2),2);
setFillColor(getSeries(2),new Color(0,0,0));
ENDSTYLE
END



Good luck


_____________________
WF: 8.0.0.9 > going 8.2.0.5
November 23, 2012, 10:36 AM
Wep5622
Interesting workaround! It looks like I may be able to use that.

Edit: Just noticed that this is a VLINE type graph, so my X-values will just be in sequence instead of on the correct coordinate. Frowner
I think a scatter-graph could be coerced to behave the same though.

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


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 :