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] WebFOCUS 8 Bar Graph - Bar width & Series Label Questions
Go
New
Search
Notify
Tools
Reply
  
[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: 138 | Registered: July 21, 2011Reply With QuoteReport 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: 100 | Registered: September 10, 2013Reply With QuoteReport 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: 100 | Registered: September 10, 2013Reply With QuoteReport 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: 32 | Registered: July 17, 2020Reply With QuoteReport This Post
  Powered by Social Strata  
 

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-2018 Information Builders, leaders in enterprise business intelligence.