Focal Point
Graph : Align line marker with bars

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

May 21, 2008, 04:47 AM
Pete
Graph : Align line marker with bars
Hi ,

I'm trying to align my line an bar graph but i don't get it to work, the line markers are always to the left of the corresponding bar value , i'm trying to get it in the middle

I've tried to reconstruct it in a car module

Any clues???

P.



  

GRAPH FILE CAR
SUM
 SALES
 SEATS
BY COUNTRY AS ''
ON GRAPH SET LOOKGRAPH VBRSTK2
ON GRAPH SET GRAPHEDIT SERVER
ON GRAPH SET BARNUMB ON
ON GRAPH SET GRMERGE ON
ON GRAPH SET 3D OFF
ON GRAPH SET VZERO OFF
ON GRAPH SET GRAPHSTYLE *
setMarkerDisplay(true);
setConnectLineMarkers(true);
setConnectScatterMarkers(false);
setO1LabelDisplay(true);
setO1AxisSide(0);
setO1MajorGridDisplay(false);
setO1MajorGridStyle(0);
setO1MinorGridDisplay(false);
setY2MustIncludeZero(false);
setY1MustIncludeZero(false);
setFillColor(getY2Label(),new Color(178 ,34 ,34));
setFillColor(getY1Label(),new Color(0, 0 ,255));
setSeriesType(1,2);
setAxisAssignment(1,0);
setY1LabelDisplay(true);
setSeriesType(0,1);
setFillColor(getSeries(1),new Color(0, 0 ,255));
setFillColor(getSeries(0),new Color(178 ,34 ,34));
setAxisAssignment(0,1);
setDataTextDisplay(false);
setY2LabelDisplay(true);
setLegendDisplay(true);
setY2AxisSide(0);
setY2MajorGridDisplay(true);
setY2MajorGridStyle(1);
setY2MinorGridDisplay(false);
setY1AxisSide(1);
setY1MajorGridDisplay(true);
setY1MinorGridDisplay(false);
setReferenceLine(getY1Axis(), 0, 0.01);
setLineBasicStrokeType(getReferenceLine(getY1Axis(),0), 5);
setPlace(true);
ENDSTYLE
ON GRAPH SET STYLE *
     PAGESIZE='Letter',
     LEFTMARGIN=0.0000,
     RIGHTMARGIN=0.0000,
     TOPMARGIN=0.0000,
     BOTTOMMARGIN=0.0000,
     ORIENTATION=PORTRAIT,
$
TYPE=REPORT,
     GRID=OFF,
     FONT='TAHOMA',
     SIZE=18,
     COLOR=RGB(232 232 232),
     BACKCOLOR='WHITE',
     STYLE=NORMAL,
     RIGHTGAP=0.000,
$
ENDSTYLE
END



D: WF 7.6.2 P. : WF 7.6.2 on W2003
------------------------------------------------------------------
I see myself as an intelligent, sensitive human, with the soul of a clown which forces me to blow it at the most important moments.

-Jim Morrison-

May 21, 2008, 05:04 AM
Tony A
Pete,

This is as expected with the graphtype that you are using, as the line is actually replacing one of the bars. You would need to identify a graphtype that allows you to overlay the bars (if there is one?) as stacking will give you a vertical offset instead Frowner Try the Vertical Dual-Axis Absolute Line graph instead -

-*ON GRAPH SET LOOKGRAPH VBRSTK2
ON GRAPH SET GRAPHEDIT SERVER
ON GRAPH SET BARNUMB ON
ON GRAPH SET GRMERGE ON
ON GRAPH SET 3D OFF
ON GRAPH SET VZERO OFF
ON GRAPH SET GRAPHSTYLE *
setGraphType(43);


T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
May 21, 2008, 05:33 AM
Pete
I just found out that it works when i change the type to

ON GRAPH SET LOOKGRAPH VBAR2AX


thanks Tony , for showing me the way


D: WF 7.6.2 P. : WF 7.6.2 on W2003
------------------------------------------------------------------
I see myself as an intelligent, sensitive human, with the soul of a clown which forces me to blow it at the most important moments.

-Jim Morrison-