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     [CLOSED] Label first 5 pie segments
Go
New
Search
Notify
Tools
Reply
  
[CLOSED] Label first 5 pie segments
 Login/Join
 
Member
posted
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
 
Posts: 2 | Registered: September 13, 2019Reply With QuoteReport This Post
Virtuoso
posted Hide Post
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
 
Posts: 1847 | Location: New York City | Registered: December 30, 2015Reply With QuoteReport This Post
Member
posted Hide Post
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
 
Posts: 2 | Registered: September 13, 2019Reply With QuoteReport This Post
Expert
posted Hide Post
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 
 
Posts: 5684 | Location: United Kingdom | Registered: April 08, 2004Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Label first 5 pie segments

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