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] Showing lines on a graph made from two master files

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Showing lines on a graph made from two master files
 Login/Join
 
Silver Member
posted
I've cretaed a 2-series graph (bar and line) by using two master files. The only problem is the series that is being represented as line only shows up as dots (not connected by line). If I apply same formatting to a code that uses one master file, the line comes up fine. I also tried both JOIN and MATCH to see if any of them would make a difference.
Line formatting code that I'm using is:

setSeriesType(getSeries(1),2);
setAxisAssignment(1,0);
setSeriesType(1,2);
setDataLineThickness(3);
setFillColor(getSeries(1),new Color(255,128,0));
setMarkerShape(getSeries(1),2);
setLineWidth(getSeries(1),3);
setConnectLineStep(getSeries(1),true);
setLineBasicStrokeType(getSeries(1),12);

Thanks.

This message has been edited. Last edited by: Kerry,
 
Posts: 34 | Registered: June 19, 2007Report This Post
Virtuoso
posted Hide Post
Arsalan,

What do you mean by "using two master files"? Are you joining? Are you creating 2 graphs? Can you show the Fex?


Daniel
In Focus since 1982
wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF

 
Posts: 1980 | Location: Tel Aviv, Israel | Registered: March 23, 2006Report This Post
Silver Member
posted Hide Post
Daniel,

Yes, I'm creating this graph by joining 2 master files, one graph out of them. There are two series that I'm creating, one is bar and another line (but it only shows dts, not cooneted).
My approach is:

MATCH FILE File1
SUM
FIELD1
BY FIELD2

RUN
FILE File2
PRINT
FIELD3
FIELD4
BY FIELD5

AFTER MATCH HOLD OLD-AND-NEW
END

GRAPH FILE HOLD
PRINT
COMPUTE FIELD6/D12.2 = FIELD1 / FIELD3;
FIELD4
BY FIELD5

ON GRAPH PCHOLD AS HOLD FORMAT PNG
ON GRAPH SET GRAPHDEFAULT OFF
ON GRAPH SET HAXIS 770
ON GRAPH SET VAXIS 405
ON GRAPH SET UNITS PIXELS
ON GRAPH SET LOOKGRAPH VBAR
ON GRAPH SET GRMERGE ADVANCED
ON GRAPH SET GRMULTIGRAPH 0
ON GRAPH SET GRLEGEND 0
ON GRAPH SET GRXAXIS 1
ON GRAPH SET GRAPHSTYLE *
setTemplateFile("/images/tdg/template/IBISouthWestern.txt");
setReportParsingErrors(false);
setSelectionEnableMove(false);
setDepthRadius(5);
setPlace(true);
setDepthRadius(0);
setDepthAngle(0);
setFillColor(getChartBackground(),new Color(255,255,255));
-*********************************Line Formatting
-*setSeriesType(getSeries(1),2);
setAxisAssignment(0,0);
setSeriesType(1,2);
setDataLineThickness(3);
setFillColor(getSeries(1),new Color(255,128,0));
setMarkerShape(getSeries(1),2);
setLineWidth(getSeries(1),3);
setConnectLineStep(getSeries(1),true);
setLineBasicStrokeType(getSeries(1),12);
-*********************************Y-AXIS FORMATTING
setDisplay(getY1MinorGrid(),true);
setGridStepAuto(getY1MinorGrid(),false);
setGridStep(getY1MinorGrid(),9.99);
-*********************************FRAME FORMATTING
setDisplay(getReferenceLineY1(0),true);
setBorderColor(getFrame(),new Color(255,255,255));
setTransparentBorderColor(getFrame(),true);
setTransparentFillColor(getFrame(),true);
-*********************************
ENDSTYLE
END
 
Posts: 34 | Registered: June 19, 2007Report This Post
Expert
posted Hide Post
KISS... Do whatever (JOIN or MATCH) and TABLE the data to a common HOLD file and GRAPH FILE HOLDFILE and set your series type accordingly... It sounds like you're confusing the "two masters" as being part of your "GRAPH" problem. the Graph GUI does this quite nicely...
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
<JG>
posted
Your graph type is VBAR and you are using the API to switch the type of a series.
However you are not explicity telling it to connect the points.

Automatically connecting plot points for line plots is only defaulted to true if
the graph type is either a horiztonal or vertical line graph.

Try adding setConnectLineMarkers(true);
 
Report This Post
Silver Member
posted Hide Post
Thanks all for replying and helping.
I added:
setConnectLineMarkers(true);
and it did the job.

Thanks again!
 
Posts: 34 | Registered: June 19, 2007Report 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] Showing lines on a graph made from two master files

Copyright © 1996-2020 Information Builders