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]rotate data label in a bar chart

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[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, 2015Report 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, 2015Report 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, 2015Report 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, 2015Report This Post
Member
posted Hide Post
I figured out the issue

setTextRotation(getDataText(),1);


WebFocus 8.x
Hyperstage
 
Posts: 6 | Registered: June 16, 2015Report 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, 2015Report 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, 2009Report 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]rotate data label in a bar chart

Copyright © 1996-2020 Information Builders