Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] Graph Legend Text Truncated - Need Help
Go
New
Search
Notify
Tools
Reply
  
[SOLVED] Graph Legend Text Truncated - Need Help
 Login/Join
 
Gold 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: 77 | Registered: July 10, 2018Reply With QuoteReport This Post
Gold 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: 77 | Registered: July 10, 2018Reply With QuoteReport This Post
Gold 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: 77 | Registered: July 10, 2018Reply With QuoteReport This Post
Member
posted Hide Post
Use setPlace(false);


WebFOCUS 8105 | 8206
Windows, All Outputs
 
Posts: 22 | Registered: May 24, 2016Reply With QuoteReport This Post
Gold member
posted Hide Post
thank you. that works. Appreciate it!!


WebFOCUS 8204
 
Posts: 77 | Registered: July 10, 2018Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] Graph Legend Text Truncated - Need Help

Copyright © 1996-2018 Information Builders, leaders in enterprise business intelligence.