Focal Point
[CLOSED] WebFOCUS 8 Bar Graph - Bar width & Series Label Questions

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/4597025336

September 15, 2013, 12:13 PM
BI_Developer
[CLOSED] WebFOCUS 8 Bar Graph - Bar width & Series Label Questions
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
September 15, 2013, 05:30 PM
WF1326
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

October 02, 2013, 12:10 AM
WF1326
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

August 05, 2020, 12:29 PM
WF Learner
Hello,
Can someone please clarify me on following question? bargroupgapwidth is measured in what units? 0.2 in pixel or points or any other?