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. Moving forward, myibi is our community platform to learn, share, and collaborate. We have the same Focal Point forum categories in myibi, so you can continue to have all new conversations there. If you need access to myibi, contact us at myibi@ibi.com and provide your corporate email address, company, and name.


Connect to myibi
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] WebFOCUS 8 Bar Graph - Bar width & Series Label Questions

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] WebFOCUS 8 Bar Graph - Bar width & Series Label Questions
 Login/Join
 
Platinum Member
posted
Hello

I have 2 questions with a bar graph using Info Assist in WebFOCUS 8. Below is the same code

ENGINE INT CACHE SET ON
-DEFAULTH &WF_STYLE_UNITS='PIXELS';
-DEFAULTH &WF_STYLE_HEIGHT='400.0';
-DEFAULTH &WF_STYLE_WIDTH='770.0';
GRAPH FILE CAR
-* Created by Info Assist for Graph
SUM CAR.BODY.SALES AS ''
BY CAR.ORIGIN.COUNTRY
ON GRAPH PCHOLD FORMAT JSCHART
ON GRAPH SET VZERO OFF
ON GRAPH SET HTMLENCODE 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 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 *
INCLUDE=IBFS:/FILE/IBI_HTML_DIR/javaassist/intl/EN/ENIADefault_combine.sty,$
TYPE=REPORT, TITLETEXT='WebFOCUS Report', $
*GRAPH_SCRIPT
setReportParsingErrors(false);
setSelectionEnableMove(false);
*END
ENDSTYLE
END


1. How can I reduce the width of bar in the graph? I tried using setRiserWidth but there was no change.

2. I do not want to have label for Y-Axis (Sales in this example). So I placed a blank as column title for SALES. But when this is done, when you hover on any bar on the graph, it shows "Series 0". How can this be avoided? If I enable column title by removing blank, then "Series 0" is replaced by Sales. I am trying to remove Series 0 or show Sales when hovering on a bar but avoiding the Y-axis label.

Please suggest..

Thank you..

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


WF 8.2.01 APP STUDIO
PDF,HTML,EXL2K,Active
 
Posts: 139 | Registered: July 21, 2011Report This Post
Platinum Member
posted Hide Post
1: setRiserWidth does not work if your output format is JSCHART

2: Same here. It will not work since your file format is JSCHART

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


WebFOCUS
7703/7705/8105m/8201m/8202m

 
Posts: 99 | Registered: September 10, 2013Report This Post
Platinum Member
posted Hide Post
Use the following code in the styling for the bar width

*GRAPH_JS
blaProperties: {
barGroupGapWidth: 0.5
},
*END

Note: The barGroupGapWidth:0.2 by default and can range from 0.0 to 1.0


WebFOCUS
7703/7705/8105m/8201m/8202m

 
Posts: 99 | Registered: September 10, 2013Report This Post
Silver Member
posted Hide Post
Hello,
Can someone please clarify me on following question? bargroupgapwidth is measured in what units? 0.2 in pixel or points or any other?
 
Posts: 35 | Registered: July 17, 2020Report 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     [CLOSED] WebFOCUS 8 Bar Graph - Bar width & Series Label Questions

Copyright © 1996-2020 Information Builders