Focal Point
[CLOSED] Label first 5 pie segments

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/3637066296

February 20, 2020, 06:16 PM
Loco
[CLOSED] Label first 5 pie segments
I'm trying to get the BAR totals SUM label to rotate 90 degrees. I don't get any errors, but it seems like my setTextRotation(getDataText(),1) method is being ignored. Any suggestions?

GRAPH FILE fopend_20200203
-* Created by Info Assist for Graph
SUM SSN AS 'All CDRs'
FTC_WU AS 'FTC/WU CDRs'
BY FILE_DT AS 'Date'
BY REGION AS 'Region'
HEADING
"FTC/WU CDRs by Region Over Time"
ON GRAPH PCHOLD FORMAT JSCHART
ON GRAPH SET VZERO OFF
ON GRAPH SET GRWIDTH 1
ON GRAPH SET AUTOFIT ON
ON GRAPH SET UNITS &WF_STYLE_UNITS
ON GRAPH SET HAXIS &WF_STYLE_WIDTH
ON GRAPH SET VAXIS &WF_STYLE_HEIGHT
ON GRAPH SET LOOKGRAPH BAR
ON GRAPH SET AUTOFIT ON
ON GRAPH SET STYLE *
*GRAPH_SCRIPT
setPieDepth(0);
setPieTilt(0);
setDepthRadius(0);
setCurveFitEquationDisplay(false);
setPlace(true);
*END
INCLUDE=IBFS:/FILE/IBI_HTML_DIR/ibi_themes/Warm.sty,$
TYPE=REPORT, TITLETEXT=&WF_TITLE.QUOTEDSTRING, ORIENTATION=LANDSCAPE, $
TYPE=DATA, COLUMN=N1, BUCKET=color, $
TYPE=DATA, COLUMN=N2, BUCKET=x-axis, $
TYPE=DATA, COLUMN=N3, BUCKET=y-axis, $
TYPE=DATA, COLUMN=N4, BUCKET=y-axis, $
TYPE=HEADING, JUSTIFY=CENTER, $
TYPE=HEADING, LINE=1, ITEM=1, OBJECT=TEXT, FONT='ARIAL', SIZE=12, COLOR=RGB(32 0 32), STYLE=BOLD, $
*GRAPH_SCRIPT
setReportParsingErrors(false);
setSelectionEnableMove(false);
setLogScale(getY1Axis(),true);
setDataTextDisplay(true);
setTextRotation(getDataText(),1);
*END
ENDSTYLE
END

This message has been edited. Last edited by: FP Mod Chuck,


8.2.01, Windows 10/UNIX System Services, Excel PDF HTML Text
February 21, 2020, 10:52 AM
BabakNYC
Try both of these sets. When I rotate the label in InfoAssist it puts both of them in.

 
setTextRotation(getDataText(),1);
setTextRotation(getO1Label(),1); 



WebFOCUS 8206, Unix, Windows
February 27, 2020, 02:43 PM
Loco
The setTextRotation(getO1Label(),1) only rotates the label located along the X-axis, it does not rotate the totals label at the top of the BAR on the chart. The getDataText function is still being ignored.


8.2.01, Windows 10/UNIX System Services, Excel PDF HTML Text
March 03, 2020, 06:13 AM
Tony A
I don't think that there is an attribute in either PFJ or Moonbeam charting engines that allow you to do this although you might like to attempt changing the CSS in a function callback within the *GRAPH_JS (Moonbeam) section.

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10