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     Series text for line graph...

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Series text for line graph...
 Login/Join
 
<Shane>
posted
All:

I've got a dilemma. When we run a line graph and there's only one series displayed, there is no text on the legend or on the popup when you mouse-over the line on the graph. Is there any way to tell WebFOCUS to always display the series text no matter how few or many lines may be displayed?

Shane
 
Report This Post
Expert
posted Hide Post
Shane,

Is this Shane from Paris, IL??

If so, How is everyone??? And, Say Hi to all!!

Post your code, I'll try to assist...


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
 
Posts: 1972 | Location: Centennial, CO | Registered: January 31, 2006Report This Post
<Shane>
posted
Tom,

Everyone is great. Developing our dashboard. You can use the CAR file to try it out.

If you run this code, you'll see that in my WHERE clause I select BMW, but when you hover over the line, it doesn't display BMW, just the value.

GRAPH FILE CAR
SUM SALES
ACROSS DEALER_COST
BY CAR AS ''
WHERE CAR EQ 'BMW';
ON GRAPH SET LOOKGRAPH VLINE
ON GRAPH SET GRAPHEDIT SERVER
ON GRAPH SET BARNUMB OFF
ON GRAPH SET 3D OFF
ON GRAPH SET VZERO ON
ON GRAPH SET GRID ON
ON GRAPH SET GRMERGE ON
ON GRAPH PCHOLD FORMAT PNG
ON GRAPH SET GRAPHSTYLE *
setMarkerDisplay(true);
setConnectLineMarkers(true);
setConnectScatterMarkers(true);
setO1LabelDisplay(true);
setO1AxisSide(0);
setO1MajorGridDisplay(true);
setO1MajorGridStyle(0);
setO1MinorGridDisplay(false);
setAxisAssignment(0,0);
setSeriesType(0,2);
setY1LabelDisplay(true);
setY1AxisSide(0);
setY1MajorGridDisplay(true);
setY1MajorGridStyle(0);
setY1MinorGridDisplay(false);
setTextFormatPreset(getY1Label(),-1);
setTextFormatPattern(getY1Label(),"#.##");
setPieFeelerTextDisplay(1);
setPieLabelDisplay(0);
setTextFormatPreset(getPieSliceLabel(),1);
setRiserBorderMode(1);
setSeriesDefaultTransparentBorderColor(true);
setUseSeriesBorderDefaults(true);
setLegendDisplay(true);
setLegendTextAutofit(true);
setFontSizeAbsolute(getY1Title(),true);
setFontSizeAbsolute(getY1Label(),true);
setFontSizeAbsolute(getY2Title(),true);
setFontSizeAbsolute(getY2Label(),true);
setFontSizeAbsolute(getO1Title(),true);
setFontSizeAbsolute(getO1Label(),true);
setPlace(false);
ENDSTYLE
ON GRAPH SET STYLE *
SQUEEZE=ON,
ORIENTATION=PORTRAIT,
$
TYPE=REPORT,
GRID=OFF,
FONT='TIMES NEW ROMAN',
SIZE=10,
$
ENDSTYLE
END
 
Report This Post
Expert
posted Hide Post
Shane,

The Line/Bar/Pie that you are plotting ALWAYS displays the value of what you are summing;
Add the the single BY value to a Heading.
If it's MULTIPLE, i.e., PLANT, then use that as the ACROSS, the X-axis, and skip over the HEADING.

You can use a BAR for SALES and a LINE for DEALER_COST, or, vice-versa.

The example is confusing in that you are plotting SALES(Y) ACROSS DEALER_COST(X) BY CAR

Try using:
GRAPH FILE CAR
-IF &VALUE CONTAINS 'OR' GOTO SKIP_HEAD;
HEADING CENTER
"<CAR"
-SKIP_HEAD
SUM 
     SALES AS '' 
     DEALER_COST AS ''
-IF &VALUE CONTAINS 'OR' GOTO DO_CAR;
ACROSS MODEL
-GOTO DO_GRAPH
-DO_CAR
BY CAR 
-DO_GRAPH
WHERE CAR EQ '&VALUE.EVAL';
ON GRAPH SET LOOKGRAPH VBAR
etc....


The above ON GRAPH SET LOOKGRAPH VBAR does a bar with a line


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
 
Posts: 1972 | Location: Centennial, CO | Registered: January 31, 2006Report This Post
<Shane>
posted
Tom,

I guess I don't understand your answer.

Here's what I'm trying to do. We have a line graph that's being generated by WebFOCUS. We don't know how many lines will be drawn once the graph is finished. When there are 2 or more lines on the graph, the legend displays the values of the BY field.

If there is only one line plotted on the graph, the legend displays only a color with no text. From looking at other posts, I think i might need to do something with setSeriesLabel.

Shane
 
Report This Post
<Shane>
posted
Just an update...

IBI is looking into this issue in their Product Division...sounds like a bug to me...

Shane
 
Report 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     Series text for line graph...

Copyright © 1996-2020 Information Builders