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] PDF Bar Graph - X axis label wrap

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] PDF Bar Graph - X axis label wrap
 Login/Join
 
Platinum Member
posted
Hello

I am working on a vertical PDF bar graph. X-axis labels are long. So only few bars are displaying labels and few are not.
Is it possible to display all labels for all bars and wrap label in 2 lines if needed? I am using these statements currently.

setO1LabelWrap(true);
setAutofit(getO1Label(), true);

Please suggest.

Thank you.

This message has been edited. Last edited by: WebFOCUS_Dev,


WebFOCUS 8206
All formats
 
Posts: 95 | Registered: September 13, 2017Report This Post
Expert
posted Hide Post
Please post a sample, using an IB Sample file (CAR?).

You can stagger or angle your X-axis labels.




   In FOCUS Since 1983 ~ from FOCUS to WebFOCUS.
   Current: WebFOCUS Administrator at FIS Worldpay | 8204, 8206
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Platinum Member
posted Hide Post
Doug
Unfortunately client did not accept stagger option. I need to check on rotation of labels.
Wrapping of a label in 2 lines is acceptable but all labels should be displayed horizontally only.
quote:
Originally posted by Doug:
Please post a sample, using an IB Sample file (CAR?).

You can stagger or angle your X-axis labels.

ENGINE INT CACHE SET ON
SET PAGE-NUM=NOLEAD
SET HTMLENCODE=ON
SET ARGRAPHENGINE=JSCHART
SET EMBEDHEADING=ON
SET GRAPHDEFAULT=OFF
GRAPH FILE car
-* Created by Info Assist for Graph
SUM CAR.BODY.SALES
BY CAR.COMP.CAR
ON GRAPH PCHOLD FORMAT PDF
ON GRAPH SET VZERO OFF
ON GRAPH SET UNITS INCHES
ON GRAPH SET HAXIS 8
ON GRAPH SET VAXIS 4
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 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, PAGESIZE=LETTER, $
*GRAPH_SCRIPT
setReportParsingErrors(false);
setSelectionEnableMove(false);
*END
ENDSTYLE
END  


WebFOCUS 8206
All formats
 
Posts: 95 | Registered: September 13, 2017Report This Post
Platinum Member
posted Hide Post
Please look at below code.


-DEFAULTH &WF_STYLE_UNITS='PIXELS';
-DEFAULTH &WF_STYLE_HEIGHT='2000.0';
-DEFAULTH &WF_STYLE_WIDTH='770.0';
-DEFAULTH &WF_TITLE='WebFOCUS Report';


GRAPH FILE CAR
PRINT SEATS
BY MODEL
-*ON GRAPH PCHOLD FORMAT JSCHART
ON GRAPH SET VZERO OFF
ON GRAPH SET HTMLENCODE ON
ON GRAPH SET GRAPHDEFAULT OFF
ON GRAPH SET HAXIS '&WF_STYLE_HEIGHT'
ON GRAPH SET VAXIS '&WF_STYLE_WIDTH'
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

setFontSizeAbsolute(getO1Label(),true);
setFontSize(getO1Label(),8);
setTextWrap(getO1Label(),true);

setFontSizeAbsolute(getY1Label(),true);
setFontSize(getY1Label(),8);
setTextWrap(getY1Label(),true);

setFontSizeAbsolute(getY1Title(),true);
setFontSize(getY1Title(),6);


setO1LabelAutofit(false);
setPieDepth(0);
setPieTilt(0);
setDepthRadius(0);
setCurveFitEquationDisplay(false);
setPlace(false);
setDisplay (getO1Title(),false);
*END
END



 
Posts: 109 | Registered: February 02, 2016Report This Post
Platinum Member
posted Hide Post
Hi, Any solution to this issue.?

I have a similar issue.
I use the below code to wrap the x-axis labels.
  
setTextWrap(getO1Label(),true);
setFontSizeAbsolute(getO1Label(), false);
setFontSizeInPoints(getO1Label(), 8);
setPlaceResize(getO1Label(), 0);
setFontName(getO1Label(),"CALIBRI");
setDisplay(getO1Label(),true);



For some reason the text wrapping is not happening for some use case.
I have 3 series in the bar chart.When i have data for all the 3 series , the text wrapping is happening.
When i have data for only one series, the text wrapping is not happening and alternate labels are not displaying.
Similar to what is happening in the actual post by WebFOCUS_Dev.


WF8206,Windows 7,8,10
HTM,PDF,EXCEL
 
Posts: 229 | Location: MI | Registered: September 13, 2017Report 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] PDF Bar Graph - X axis label wrap

Copyright © 1996-2020 Information Builders