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     Solved - Dual Axis Center Line

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Solved - Dual Axis Center Line
 Login/Join
 
Silver Member
posted
Hi,
I'm creating a dual axis graph. One axis is stacked bar and the other is a line. The line marker is displayed to the right side of the bar. It appears to be thinking it needs room for another set of bars. Is there anyway to center that marker and the x-axis label? Below is an example using car.

DEFINE FILE CAR
CONVERT/I11 = IF BODYTYPE = 'CONVERTIBLE' THEN 1 ELSE 0;
SEDAN/I11 = IF BODYTYPE = 'SEDAN' THEN 1 ELSE 0;
HARDTOP/I11 = IF BODYTYPE = 'HARDTOP' THEN 1 ELSE 0;
COUPE/I11 = IF BODYTYPE = 'COUPLE' THEN 1 ELSE 0;
SEDAN/I11 = IF BODYTYPE = 'SEDAN' THEN 1 ELSE 0;
END

TABLE FILE CAR
SUM
CAR.BODY.CONVERT
CAR.BODY.SEDAN
CAR.BODY.HARDTOP
CAR.BODY.COUPE
CAR.BODY.SEDAN
CAR.BODY.DEALER_COST
BY CAR.COMP.CAR
ON TABLE HOLD AS FINAL
END
-*IA_GRAPH_BEGIN
-*Do not delete or modify the comments below
*-INTERNAL_COMMENT LINE#0$PD94bWwgdmVyc2lvbj0iM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ICAgIDxQcm9wZXJ0eSBuYW1lPSJlbmFibGVQcmV2aWV3IiB0eXBlPSJqYXZhLmxhbmcuQm9vbGVhbiI+dHJ1ZTwvUHJvcGVydHk+DQogICAgPC9PYmplY3Q+DQo8L1Jvb3Q+DQo=
-*Do not delete or modify the comments above
ENGINE INT CACHE SET ON
-DEFAULTH &WF_STYLE_UNITS='PIXELS';
-DEFAULTH &WF_STYLE_HEIGHT='405.0';
-DEFAULTH &WF_STYLE_WIDTH='770.0';
-DEFAULTH &WF_TITLE='WebFOCUS Report';
GRAPH FILE final
-* Created by Info Assist for Graph
SUM FINAL.FINAL.COUPE
FINAL.FINAL.HARDTOP
FINAL.FINAL.SEDAN
FINAL.FINAL.CONVERT
FINAL.FINAL.DEALER_COST
BY FINAL.FINAL.CAR
ON GRAPH PCHOLD FORMAT JSCHART
ON GRAPH SET VZERO OFF
ON GRAPH SET HTMLENCODE ON
ON GRAPH SET GRAPHDEFAULT OFF
ON GRAPH SET GRWIDTH 1
ON GRAPH SET UNITS &WF_STYLE_UNITS
ON GRAPH SET HAXIS &WF_STYLE_WIDTH
ON GRAPH SET VAXIS &WF_STYLE_HEIGHT
ON GRAPH SET GRMERGE ADVANCED
ON GRAPH SET GRMULTIGRAPH 0
ON GRAPH SET GRLEGEND 0
ON GRAPH SET GRXAXIS 1
ON GRAPH SET LOOKGRAPH VBRSTK2
ON GRAPH SET AUTOFIT ON
ON GRAPH SET STYLE *
*GRAPH_SCRIPT
setPieDepth(0);
setPieTilt(0);
setDepthRadius(0);
setCurveFitEquationDisplay(false);
setPlace(true);
*END
INCLUDE=IBFS:/FILE/IBI_HTML_DIR/javaassist/intl/EN/ENIADefault_combine.sty,$
TYPE=REPORT, TITLETEXT=&WF_TITLE.QUOTEDSTRING, $
*GRAPH_SCRIPT
setReportParsingErrors(false);
setSelectionEnableMove(false);
setAxisAssignment( $0, 0);
setAxisAssignment( $1, 0);
setAxisAssignment( $2, 0);
setAxisAssignment( $3, 0);
setAxisAssignment( $4, 1);
setSeriesType(4,2);
setSeriesType(0,1);
*END
ENDSTYLE
END
-RUN

-*IA_GRAPH_FINISH

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


WebFOCUS 8104, Windows, All Outputs
 
Posts: 43 | Registered: March 26, 2014Report This Post
Guru
posted Hide Post
Hi Rev1,

Can you send a screenshot of the graph you are getting? When I run your example I do not see what it is you are referring to, thanks.

Thank you for participating in the Focal Point Forum.

Kindest regards,
Tamra Colangelo
Focal Point Moderator
Information Builders Inc.
* Summit 2016 – June 13-17 in Reno, Nevada  - http://www.informationbuilders.com/events/summit


WebFOCUS 8x - BI Portal, Developer Studio, App Studio, Excel, PDF, Active Formats and HTML5
 
Posts: 487 | Location: Toronto | Registered: June 23, 2009Report This Post
Guru
posted Hide Post
Hi Rev1,

Thank you for the email with the screenshot.

You will find how to add an image to the post within the "Forum Guidelines - FAQ's - scroll to ** Post an image.

Click here to get to the above link, its on the main Forum page.

Thank you for participating in the Focal Point Forum.

Kindest regards,
Tamra Colangelo
Focal Point Moderator
Information Builders Inc.
* Summit 2016 – June 13-17 in Reno, Nevada  - http://www.informationbuilders.com/events/summit


WebFOCUS 8x - BI Portal, Developer Studio, App Studio, Excel, PDF, Active Formats and HTML5
 
Posts: 487 | Location: Toronto | Registered: June 23, 2009Report This Post
Silver Member
posted Hide Post

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


WebFOCUS 8104, Windows, All Outputs
 
Posts: 43 | Registered: March 26, 2014Report This Post
Expert
posted Hide Post
Comment out the commands in *GRAPH_SCRIPT and re-add them until you see the problem.

When I try this suggestion, I see that there is a second bar for each dimension - DEALER_COST.


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Expert
posted Hide Post
-*setSeriesType(4,2);


I guess even though you're specifying the second measure is a line, space is reserved for it as a bar. Not nice Frowner


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Silver Member
posted Hide Post
It appears to be caused by the dual axis. If you run the same chart with a single axis it lines up better. Granted the example numbers are far apart so it's hard to view it with this example.


WebFOCUS 8104, Windows, All Outputs
 
Posts: 43 | Registered: March 26, 2014Report This Post
Guru
posted Hide Post
Rev1,

I have spoken with the Graph product manager and this is a known issue and is targeted to be resolved within WebFOCUS 8.1.05

If you would like to be notified when this becomes resolved please open a case at Technical Support Center and mention that it is a known issue.

Thank you for participating in the Focal Point Forum.

Kindest regards,
Tamra Colangelo
Focal Point Moderator
Information Builders Inc.
* Summit 2016 – June 13-17 in Reno, Nevada  - http://www.informationbuilders.com/events/summit


WebFOCUS 8x - BI Portal, Developer Studio, App Studio, Excel, PDF, Active Formats and HTML5
 
Posts: 487 | Location: Toronto | Registered: June 23, 2009Report 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     Solved - Dual Axis Center Line

Copyright © 1996-2020 Information Builders