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]rotate data label in a bar chart
Go
New
Search
Notify
Tools
Reply
  
[SOLVED]rotate data label in a bar chart
 Login/Join
 
Member
posted
how to rotate a data label in a bar chart?
My data labels are displayed in a horizontal position and I want to display in a vertical position. Any help

setTextRotation(getDataText(),1);

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


WebFocus 8.x
Hyperstage
 
Posts: 6 | Registered: June 16, 2015Reply With QuoteReport This Post
Master
posted Hide Post
If you are using GUI software to create this chart, right click on the label, select "Rotate" and then "90".


App Studio
WebFOCUS 8.1.05M
Windows, All Outputs
 
Posts: 594 | Location: Michigan | Registered: September 04, 2015Reply With QuoteReport This Post
Master
posted Hide Post
If you are not using the GUI, here's what the chart looks like in plain text:

ENGINE INT CACHE SET ON
-DEFAULTH &WF_STYLE_UNITS='PIXELS';
-DEFAULTH &WF_STYLE_HEIGHT='405.0';
-DEFAULTH &WF_STYLE_WIDTH='770.0';
-DEFAULTH &WF_TITLE='WebFOCUS Report';
GRAPH FILE car
-* Created by Info Assist for Graph
SUM CAR.BODY.SALES
BY CAR.COMP.CAR
ON GRAPH PCHOLD FORMAT JSCHART
ON GRAPH SET VZERO OFF
ON GRAPH SET HTMLENCODE ON
ON GRAPH SET GRAPHDEFAULT OFF
ON GRAPH SET UNITS &WF_STYLE_UNITS
ON GRAPH SET HAXIS &WF_STYLE_WIDTH
ON GRAPH SET VAXIS &WF_STYLE_HEIGHT
ON GRAPH SET GRMERGE ADVANCED
ON GRAPH SET GRMULTIGRAPH 0
ON GRAPH SET GRLEGEND 0
ON GRAPH SET GRXAXIS 1
ON GRAPH SET LOOKGRAPH VBAR
ON GRAPH SET AUTOFIT ON
ON GRAPH SET STYLE *
*GRAPH_SCRIPT
setPieDepth(0);
setPieTilt(0);
setDepthRadius(0);
setCurveFitEquationDisplay(false);
setPlace(true);
*END
TYPE=REPORT, TITLETEXT=&WF_TITLE.QUOTEDSTRING, $
*GRAPH_SCRIPT
setReportParsingErrors(false);
setSelectionEnableMove(false);
setTextRotation(getO1Label(),1);
*END
ENDSTYLE
END
-RUN

The line you are interested in is:

setTextRotation(getO1Label(),1);


App Studio
WebFOCUS 8.1.05M
Windows, All Outputs
 
Posts: 594 | Location: Michigan | Registered: September 04, 2015Reply With QuoteReport This Post
Member
posted Hide Post
No it did not work.
I need to rotate the text inside the bar not the label.


WebFocus 8.x
Hyperstage
 
Posts: 6 | Registered: June 16, 2015Reply With QuoteReport This Post
Member
posted Hide Post
I figured out the issue

setTextRotation(getDataText(),1);


WebFocus 8.x
Hyperstage
 
Posts: 6 | Registered: June 16, 2015Reply With QuoteReport This Post
Gold member
posted Hide Post
Hi,
data labels are overlapping with the bar after rotating and number is not visible properly as I have two series in different colors.
Is there any way to give some space between bar and data label?

Thank you!


WebFOCUS 8.1.05
Windows, All Outputs
 
Posts: 56 | Registered: January 13, 2015Reply With QuoteReport This Post
Master
posted Hide Post
Bharathi,
Title of this post says "Solved".
You need to open a new post with sample code using CAR file to reproduce your issue.

Thanks,
Ram
 
Posts: 542 | Location: Dearborn, MI | Registered: June 03, 2009Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED]rotate data label in a bar chart

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