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     How can we control the space between the lables in legend box

Read-Only Read-Only Topic
Go
Search
Notify
Tools
How can we control the space between the lables in legend box
 Login/Join
 
<NAG>
posted
Hi
How can we control the space between the lables in legend box
Thanks
Nag.
 
Report This Post
Silver Member
posted Hide Post
Nag,

I'm assuming you are asking about legends displayed with WebFOCUS graphs? What version of WebFOCUS are you using?

There are many styling commands that are available and can be used to alter the way graphs are displayed, including the graph legend. These commands allow you to specify graph/legend properties such as where the legend is displayed in relation to the graph, the font size, the dimensions the legend "box", etc.).

The best advice I can give is to download the "WebFOCUS Graphics" manual for the specific release of WebFOCUS you are using. This manual is invaluable when specific styling is required and the options are not available in the GUI. Search for Legend Properties for a list of options that will affect the legend display.

Depending on what version of WebFOCUS you are using, these options may be available through the Graph Assist tool.

Here is an example of a graph procedure with the graph-specific styling commands highlighed. These are also sometimes referred to graph API commands.

GRAPH FILE CAR
SUM CAR.BODY.RETAIL_COST
CAR.BODY.DEALER_COST
ACROSS CAR.ORIGIN.COUNTRY
ON GRAPH SET LOOKGRAPH VBAR
ON GRAPH SET 3D OFF
ON GRAPH SET BARNUMB OFF
ON GRAPH SET GRID ON
ON GRAPH SET GRAPHEDIT SERVER
ON GRAPH SET VZERO ON
-* The following GRAPHSTYLE settings are the ones documented in the WebFOCUS Graphics manual.
-* They are used to alter the graph display properties.
ON GRAPH SET GRAPHSTYLE *
setSeriesType(0,1);
setSeriesType(1,1);
setUseSeriesShapes(false);
setConnectLineMarkers(false);
setConnectScatterMarkers(false);
setO1LabelDisplay(true);
setO1AxisSide(0);
setO1MajorGridDisplay(true);
setO1MajorGridStyle(0);
setO1MinorGridDisplay(false);
setY1LabelDisplay(true);
setY1AxisSide(0);
setTextFormatPreset(getY1Label(),1);
setY1MajorGridDisplay(true);
setY1MajorGridStyle(0);
setY1MinorGridDisplay(false);
-* These commands are specifically applied to the graph legend styling.
setFillColor(getLegendText(),new Color(25,25,112));
setFontSize(getLegendText(),10);
setFontSizeAbsolute(getLegendText(),true);
setPlaceResize(getLegendText(),0);
setTextRotation(getLegendText(),0);
setPlaceRotate(getLegendText(),0);
setTextJustHoriz(getLegendText(),1);
setPlaceAlign(getLegendText(),0);
setTextWrap(getLegendText(),true);
setPlaceWordWrap(getLegendText(),0);

setFontSize(getO1Label(),12);
setFontSizeAbsolute(getO1Label(),true);
setPlace(true);
ENDSTYLE
END

Hope this helps!
 
Posts: 22 | Location: Atlanta | Registered: January 19, 2007Report This Post
<NAG>
posted
Hi,
Iam using 7.1 version and iam working for Pie graphs.
I need to control the space between the labels in the legend box,
In some casses iam getting the space between labels is vary high in case of less number of lables(5)
Insome casses space is vary low if the number of labels are high(12)

here is the example iam trying to do
GRAPH FILE CAR
SUM WEIGHT AS ''
ACROSS CAR AS ''
-*WHERE RECORDLIMIT EQ 10
ON GRAPH SET LOOKGRAPH PIE
ON GRAPH SET GRAPHEDIT SERVER
ON GRAPH SET BARNUMB OFF
ON GRAPH SET 3D OFF
ON GRAPH SET VZERO ON
ON GRAPH SET GRID OFF
ON GRAPH SET VAXIS 300
ON GRAPH SET HAXIS 300
ON GRAPH PCHOLD FORMAT PNG
ON GRAPH SET GRAPHSTYLE *
setLegendMarkersPerRow(1);
setTextFormatPattern(getY1Label(),"#");
setLegendTextAutofit(false);
setLegendAutomatic(false);
setPlaceResize(getLegendArea(),false)
setRect(getLegendArea(), new Rectangle(2500, -9500, 9000, 21000));
setMarkerDisplay(false);
setConnectLineMarkers(false);
setConnectScatterMarkers(false);
setO1LabelDisplay(true);
setO1AxisSide(0);
setO1MajorGridDisplay(false);
setO1MinorGridDisplay(false);
setAxisAssignment(0,0);
setY1LabelDisplay(true);
setY1AxisSide(0);
setY1MajorGridDisplay(false);
setY1MinorGridDisplay(false);
setTextFormatPreset(getY1Label(),1);
setPieFeelerTextDisplay(2);
setPieLabelDisplay(1);
setTextFormatPreset(getPieSliceLabel(),2);
setLegendDisplay(true);
setTextJustHoriz(getLegendText(),0);
setFontSizeAbsolute(getLegendText(),true);
setFontSize(getLegendText(),10);
setFontSizeAbsolute(getY1Title(),true);
setFontSizeAbsolute(getY1Label(),true);
setFontSizeAbsolute(getY2Title(),true);
setFontSizeAbsolute(getY2Label(),true);
setFontSizeAbsolute(getO1Title(),true);
setFontName(getO1Label(),"Dialog");
setFontSizeAbsolute(getO1Label(),true);
setPlace(false);
ENDSTYLE

The space between Audi and BMW lables should controle according to the our requirement.

Thanks
Nag.

This message has been edited. Last edited by: <NAG>,
 
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     How can we control the space between the lables in legend box

Copyright © 1996-2020 Information Builders