Focal Point
Graph with 1 short warning line

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

June 10, 2008, 03:09 PM
Fernando
Graph with 1 short warning line
Currently I have a bar graph that has 2 numbers which add up 100%. I need to display a warning line at 40% but only acroos the first bar.

I've tried getReferenceLine but is shows a line across both bars. I've tried to create artifical column with the value 40, but only a dot appears since it has nothing to connect to.

Any ideas?

Fernando


Prod WF 8.1.04, QA WF 8.2.03, Dev WF 8.2.03
June 10, 2008, 04:06 PM
mgrackin
Fernando,

Here's a thought:

You could try putting each number on a seperate axis with a Bi-Polar Stacked Bar Chart and then put the reference line on the same axis as the bar you want it to mark.

setGraphType=(22);


Thanks!

Mickey

FOCUS/WebFOCUS 1990 - 2011
June 10, 2008, 04:46 PM
mgrackin
Here's a crude example.

GRAPH FILE CAR
SUM PCT.RCOST PCT.SALES
BY COUNTRY
ON GRAPH PCHOLD AS FPGRAPH FORMAT GIF
ON GRAPH SET LOOKGRAPH VBRSTK2S
ON GRAPH SET GRAPHSTYLE *
setPlace(false);
setRect(getChartBackground(),new Rectangle(-16050,-16150,32100,32300));
setFillColor(getChartBackground(),new Color(255,192,0));
setRect(getFrame(),new Rectangle(-12700,-13334,18550,25267));
setFillColor(getFrame(),new Color(255,255,255));
setFrameDisplay(true);
setLegendTextAutofit(true);
setTextJustHoriz(getLegendText(),0);
setLegendAutomatic(false);
setLegendDisplay(true);
setLegendMarkerPosition(0);
setRect(getLegendArea(),new Rectangle(6900,-6667,8650,13867));
setDepthRadius=(0);
setDepthAngle=(0);
setFontSizeAbsolute(false);

setDisplay(getReferenceLine(getY1Axis(),0),true);
setReferenceLine(getY1Axis(),0, 25);
setLineWidth(getReferenceLine(getY1Axis(),0),3);
setFillColor(getReferenceLine(getY1Axis(),0), new Color(255,255,0));

setDataScrollerPresenceGroups(1);
setDataTextDisplay(false);
setSeriesLooping(2);
setSeriesFillColor(0,new Color(0,68,0));
setSeriesFillColor(1,new Color(255,0,0));
setAxisAssignment(0,0);
setAxisAssignment(1,1);
ENDSTYLE
END


Thanks!

Mickey

FOCUS/WebFOCUS 1990 - 2011