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] Graph Legend Text Truncated - Need Help

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Graph Legend Text Truncated - Need Help
 Login/Join
 
Platinum Member
posted
Hello,

I'm trying to get my Graph legend text to display the entire value. I've played around with some of the set legend commands in code and can't get it to work. Here is what I am doing in a CAR file. Everything displays with the exception of "$50K-100K: 15.1%". How can I get this to display. If I remove one (1) character, it works!! but I need every character in that string. Thank you in advance for your help here!!

 
GRAPH FILE CAR
SUM
	SALES AS '>$100K: 0.2%'
	DEALER_COST AS '$50K-100K: 15.1%'
	CNT.COUNTRY AS '$25K-50K: 14.3%'
	CNT.BODYTYPE AS '<$25K: 54.9%'
BY COUNTRY
ACROSS BODYTYPE AS ''
WHERE COUNTRY EQ 'ENGLAND' OR 'FRANCE'
WHERE BODYTYPE EQ 'SEDAN'
ON GRAPH PCHOLD FORMAT PNG
ON GRAPH SET VZERO OFF
ON GRAPH SET UNITS PIXELS
ON GRAPH SET HAXIS '770'
ON GRAPH SET VAXIS '150'
-*ON GRAPH SET GRMERGE ADVANCED
ON GRAPH SET GRMULTIGRAPH 0
ON GRAPH SET GRLEGEND 0
ON GRAPH SET GRXAXIS 2
ON GRAPH SET LOOKGRAPH HBRSTK1
ON GRAPH SET STYLE *
*GRAPH_SCRIPT
setPieDepth(0);
setPieTilt(0);
setDepthRadius(0);
setPlace(true);
setCurveFitEquationDisplay(false);
setFillColor(getSeries(0),new Color(128,255,255));
setFillColor(getSeries(1),new Color(246,148,18));
setFillColor(getSeries(2),new Color(124,201,126));
setFillColor(getSeries(3),new Color(0,77,113));
*END
INCLUDE=IBFS:/FILE/IBI_HTML_DIR/ibi_themes/Warm.sty,$
TYPE=REPORT, TITLETEXT=&WF_TITLE.QUOTEDSTRING, $
TYPE=HEADING, JUSTIFY=CENTER, FONT='ARIAL', STYLE=BOLD, SIZE=11, COLOR=RGB(75 75 75), $
TYPE=FOOTING, LINE=1, ITEM=1, COLOR=RGB(0 77 113),$
TYPE=FOOTING, LINE=1, ITEM=2, OBJECT=TEXT, FONT='ARIAL', SIZE=8, STYLE=NORMAL, $
*GRAPH_SCRIPT
setLegendAutomatic(true);
getLegendMinWidth(7000);

setFontSize(getDataText(),9);
setFontSizeAbsolute(getDataText(0),true);
setFontSizeAbsolute(getDataText(1),true);

setPlaceResize(getO1Label(),0);
setFontSizeAbsolute(getLegendText(),true);
setFontSize(getDataText(),8);
setPlaceResize(getLegendText(),0);
setReportParsingErrors(false);
setSelectionEnableMove(false);
setLegendPosition(1);
setFillColor(getSeries(0),new Color(128,255,255));
setFillColor(getSeries(1),new Color(246,148,18));
setFillColor(getSeries(2),new Color(124,201,126));
setFillColor(getSeries(3),new Color(0,77,113));
setDisplay(getY1AxisLine(),true);
setDisplay(getY1Label(),true);
setDisplay(getO1Label(),false);
setStackedDataValueSum(false);
setReportParsingErrors(false);
setSelectionEnableMove(false);
setDisplay(getO1Title(),false);
setDisplay(getO1Label(),false);
setScaleMax(getY1Axis(),100.0);
setDataTextDisplay(true);
setDisplay(getDataText(3), true);
setFontName(getDataText(3), "ARIAL");
setFillColor(getDataText(3), new Color(255,255,255));
setDataTextPosition(4);
setDisplay(getDataText(0), true);
*GRAPH_JS_FINAL
"pieProperties": {
    "holeSize": "0%"
},
"blaProperties": {
    "seriesLayout": "stacked",
    "orientation": "horizontal"
},
"agnosticSettings": {
    "chartTypeFullName": "Bar_Stacked_Horizontal"
}
*END
ENDSTYLE
END
-RUN

-*IA_GRAPH_FINISH
 

This message has been edited. Last edited by: Brandon Andrathy,


WebFOCUS 8204
 
Posts: 152 | Registered: July 10, 2018Report This Post
Platinum Member
posted Hide Post
I ended up figuring this out. Went with creating a table below my graph file for the legend Smiler . Works great


WebFOCUS 8204
 
Posts: 152 | Registered: July 10, 2018Report This Post
Platinum Member
posted Hide Post
the table option worked but I wasn't able to get it to match up with the rest of my graph legends. Does anyone know how to make the legend display all characters that I have in my first post?

Thanks again!!


WebFOCUS 8204
 
Posts: 152 | Registered: July 10, 2018Report This Post
Member
posted Hide Post
Use setPlace(false);


WebFOCUS 8105 | 8206
Windows, All Outputs
 
Posts: 22 | Registered: May 24, 2016Report This Post
Platinum Member
posted Hide Post
thank you. that works. Appreciate it!!


WebFOCUS 8204
 
Posts: 152 | Registered: July 10, 2018Report 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] Graph Legend Text Truncated - Need Help

Copyright © 1996-2020 Information Builders