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     [CLOSED]Legends going out of Bounds

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED]Legends going out of Bounds
 Login/Join
 
Gold member
posted


I have above graph where the Legends are going out of bounds, What can i do to accomodate these Legends so that they don't overlap the graph as well.
I have read about setLegendRect but don't know how to set the coordinates required in the parameter.
Below is the graph code:
GRAPH FILE H_OC&V_TIME.EVAL
SUM
&SESSIONCOUNT.EVALSESSIONCOUNT/I9 AS 'Sessions'
&VINCOUNT.EVALVIN_COUNT/I9 AS 'VINs'
ACROSS V_PERIOD AS &V_PERIO
BY V_PRIMARY AS &V_PRIMDISP
HEADING
"Occurrence Report"
&SESSIONCOUNT.EVAL"Sessions"
&VINCOUNT.EVAL"VINs"
"Across &V_DATEDISP By &V_PERIO By &V_PRIMDISP "
""
FOOTING
"Report Date: &SD at &ST Part Number: &PARTNUMBER"
""
ON GRAPH SET LOOKGRAPH VBRSTK1
ON GRAPH SET GRAPHEDIT SERVER
ON GRAPH SET BARNUMB OFF
ON GRAPH SET 3D ON
ON GRAPH SET VZERO ON
ON GRAPH SET GRID ON
ON GRAPH SET GRMERGE ON
ON GRAPH PCHOLD FORMAT PNG
ON GRAPH SET VAXIS 500
ON GRAPH SET HAXIS 1000
ON GRAPH SET GRAPHSTYLE *
setMarkerDisplay(true);
setConnectLineMarkers(false);
setConnectScatterMarkers(false);
setO1LabelDisplay(true);
setO1AxisSide(0);
setO1MajorGridDisplay(true);
setO1MajorGridStyle(0);
setO1MinorGridDisplay(false);
setAxisAssignment(0,0);
setSeriesType(0,1);
setY1LabelDisplay(true);
setY1AxisSide(0);
setY1MustIncludeZero(true);
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);
setTextJustHoriz(getLegendText(),1);
setFontName(getLegendText(),"Dialog");
setFontSizeAbsolute(getLegendText(),true);
setFontSize(getLegendText(),10);
setTextRotation(getLegendText(),0);
setTextWrap(getLegendText(),false);
setTextJustHoriz(getY1Title(),1);
setFontSizeAbsolute(getY1Title(),true);
setFontSize(getY1Title(),12);
setTextRotation(getY1Title(),1);
setTextWrap(getY1Title(),false);
setTextJustHoriz(getY1Label(),2);
setFontName(getY1Label(),"Dialog");
setFontSizeAbsolute(getY1Label(),true);
setFontSize(getY1Label(),10);
setTextRotation(getY1Label(),0);
setTextWrap(getY1Label(),false);
setFontSizeAbsolute(getY2Title(),true);
setFontSizeAbsolute(getY2Label(),true);
setTextJustHoriz(getO1Title(),1);
setFontSizeAbsolute(getO1Title(),true);
setFontSize(getO1Title(),12);
setTextRotation(getO1Title(),0);
setTextWrap(getO1Title(),false);
setTextJustHoriz(getO1Label(),0);
setFontName(getO1Label(),"Dialog");
setFontSizeAbsolute(getO1Label(),true);
setFontSize(getO1Label(),10);
setTextRotation(getO1Label(),0);
setTextWrap(getO1Label(),false);
-*setPlaceResize(getLegendText(),0);
setPlaceRotate(getLegendText(),0);
setPlaceAlign(getLegendText(),0);
setPlaceWordWrap(getLegendText(),0);
setPlaceResize(getY1Title(),0);
setPlaceRotate(getY1Title(),0);
setPlaceAlign(getY1Title(),0);
setPlaceWordWrap(getY1Title(),0);
setPlaceResize(getY1Label(),0);
setPlaceRotate(getY1Label(),0);
setPlaceAlign(getY1Label(),0);
setPlaceWordWrap(getY1Label(),0);
setPlaceResize(getO1Title(),0);
setPlaceRotate(getO1Title(),0);
setPlaceAlign(getO1Title(),0);
setPlaceWordWrap(getO1Title(),0);
setPlaceResize(getO1Label(),0);
setPlaceRotate(getO1Label(),0);
setPlaceAlign(getO1Label(),0);
setPlaceWordWrap(getO1Label(),0);
setPlace(true);
ENDSTYLE
ON GRAPH SET STYLE *
TYPE=REPORT, TITLETEXT='Occurence Graph Primary Level', $
TYPE=DATA,FONT='ARIAL',$
TYPE=HEADING,FONT='ARIAL',STYLE=BOLD,JUSTIFY=CENTER,$
TYPE=HEADING,LINE=1,SIZE=10,STYLE=BOLD,$
TYPE=HEADING,LINE=2,SIZE=10,STYLE=BOLD,$
TYPE=HEADING,LINE=3,SIZE=9,STYLE=BOLD,$
TYPE=HEADING,LINE=4,SIZE=9,STYLE=BOLD,$
TYPE=HEADING,LINE=5,SIZE=6,STYLE=BOLD,$
TYPE=HEADING,LINE=6,SIZE=9,STYLE=BOLD,$
TYPE=FOOTING,FONT=ARIAL,SIZE=6,JUSTIFY=CENTER,$
&hidedrill.EVALTYPE=DATA, ACROSSCOLUMN=N1, FOCEXEC=idsfdbck_18215_r_occurence_graph_drill2(V_SECONDARY = &V_SECONDARY.QUOTEDSTRING PARTNUMBER = &PARTNUMBER.QUOTEDSTRING SESSIONCOUNT = &SESSIONCOUNT.QUOTEDSTRING VINCOUNT = &VINCOUNT.QUOTEDSTRING V_PRIMARY_VAL=V_PRIMARY V_PERIO=&V_PERIO.QUOTEDSTRING V_TIME=&V_TIME.QUOTEDSTRING V_PRIMDISP=&V_PRIMDISP.QUOTEDSTRING V_DATEDISP=&V_DATEDISP.QUOTEDSTRING V_GRAPHTYPE='STACK' SD=&SD.QUOTEDSTRING ST=&ST.QUOTEDSTRING ),TARGET=_self, $
TYPE=TITLE,FONT='ARIAL',$
ENDSTYLE
END


Please help!

This message has been edited. Last edited by: <Emily McAllister>,


Webfocus 8105,8808,7703,7611, EXL2K,HTML,PDF,COMT,AHTML Info Assist+ , Reportcaster
 
Posts: 64 | Location: Toronto, Ontario | Registered: May 15, 2014Report This Post
<Emily McAllister>
posted
Hello iBeny,

You might want to try setLegendAutomatic(true) which will resize the legend to be proportional to the graph size; right now it appears to be set based on window size and there is not enough space to include the entire legend as well as the graph.

That being said, this is a lot of data to include in a single graph. Even without the legend, it will be difficult to read this graph with so many elements. You may want to consider redesigning it.
I highly recommend you cut down on the amount of data you are putting into this graph, and split it into multiple different graphs; alternately you may want to group some of your categories together (EX: Sum all of the fuel-related fields) to decrease the amount of items in your graph. You may also want to consider pie charts or some other chart type to make it more visually friendly.

Please let me know if you need further help.
Thanks,
Emily McAllister
Focal Point Moderator
 
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     [CLOSED]Legends going out of Bounds

Copyright © 1996-2020 Information Builders