Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Graph : Align line marker with bars

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Graph : Align line marker with bars
 Login/Join
 
Platinum Member
posted
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-

 
Posts: 206 | Registered: February 25, 2005Report This Post
Expert
posted Hide Post
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 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
Platinum Member
posted Hide Post
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-

 
Posts: 206 | Registered: February 25, 2005Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Graph : Align line marker with bars

Copyright © 1996-2020 Information Builders