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     [CLOSED] How to minimize space between the bars in a bar Graph

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] How to minimize space between the bars in a bar Graph
 Login/Join
 
Member
posted
Hi,
I couldn't able to fix the space between the bars in a bar graph.
The space between the bars getting increases or decreases based the number of bars displaying in the graph.But,I need a constant space between each bars whether it may have 2 bars or number of bars.
Below is the sample code.:-
GRAPH FILE CAR
SUM DEALER_COST AS ''
BY COUNTRY AS ''
ACROSS CAR AS ''
ON GRAPH PCHOLD FORMAT PNG
ON GRAPH SET HTMLENCODE ON
ON GRAPH SET GRAPHDEFAULT OFF
ON GRAPH SET VZERO OFF
ON GRAPH SET HAXIS 770
ON GRAPH SET VAXIS 405
ON GRAPH SET UNITS PIXELS
ON GRAPH SET LOOKGRAPH VBRSTK1
ON GRAPH SET GRMERGE ADVANCED
ON GRAPH SET GRMULTIGRAPH 0
ON GRAPH SET GRLEGEND 0
ON GRAPH SET GRXAXIS 2
ON GRAPH SET GRAPHSTYLE *
setTemplateFile("/images/tdg/template/IBISouthWestern.txt");
setReportParsingErrors(false);
setSelectionEnableMove(false);
setTransparentBorderColor(getSeries(0),true);
setTransparentBorderColor(getSeries(1),true);
setTransparentBorderColor(getSeries(2),true);
setTransparentBorderColor(getSeries(3),true);
setTransparentBorderColor(getSeries(4),true);
setTransparentBorderColor(getSeries(5),true);
setTransparentBorderColor(getSeries(6),true);
setTransparentBorderColor(getSeries(7),true);
setTransparentBorderColor(getSeries(8),true);
setTransparentBorderColor(getSeries(9),true);
setTransparentBorderColor(getSeries(10),true);
setTransparentBorderColor(getChartBackground(),true);
setDepthRadius(0);
setDepthAngle(0);
setDisplay(getDataText(),true);
setRiserWidth(30);
setRiserBarGroupSpacing(0);
setTransparentBorderColor(getFrame(),true);
setConnectLineMarkers(true);
setMarkerSizeDefault(30);
setTextRotation(getLegendText(),0);
setTextRotation(getO1Label(),2);
setTextUnderlineType(getO1Label(),2);
setGridStyle(getO1MajorGrid(),2);
setDisplay(getO1MajorGrid(),false);
setDisplay(getY1MajorGrid(),false);
setFontName(getDataText(),"Calibri");
setFontSizeAbsolute(getDataText(),true);
setFontSizeInPoints(getDataText(),8);
setPlaceResize(getDataText(),0);
setFontName(getO1Label(),"Calibri");
setFontStyle(getO1Label(),2);
setFontSizeAbsolute(getO1Label(),true);
setFontSizeInPoints(getO1Label(),6);
setPlaceResize(getO1Label(),0);
setTextFormatPreset(getY1Label(),1);
setTextFormatPattern(getY1Label(),"#,#");
setFontName(getPieLabel(),"Calibri");
setFontName(getPieBarLabel(),"Calibri");
setFontName(getPieRingLabel(),"Calibri");
setFontName(getPieSliceLabel(),"Calibri");
setFontName(getLegendText(),"Calibri");
setFontName(getO1Title(),"Calibri");
setFontName(getX1Title(),"Calibri");
setFontName(getY1Title(),"Calibri");
setFontName(getO2Title(),"Calibri");
setFontName(getY2Title(),"Calibri");
setFontName(getY3Title(),"Calibri");
setFontName(getY4Title(),"Calibri");
setFontName(getY5Title(),"Calibri");
setFontName(getTitle(),"Calibri");
setFontName(getSubtitle(),"Calibri");
setFontName(getFootnote(),"Calibri");
setFontName(getAllText(),"Calibri");
setFontName(getY1Label(),"Calibri");
setFontStyle(getY1Label(),0);
setFontSizeAbsolute(getY1Label(),true);
setFontSizeInPoints(getY1Label(),7);
setDataTextPosition(4);
setFillColor(getSeries(0),new Color(255,128,128));
setFillColor(getSeries(1),new Color(255,128,64));
setFillColor(getSeries(2),new Color(255,255,0));
setFillColor(getSeries(3),new Color(255,0,0));
setFillColor(getSeries(4),new Color(255,128,255));
setFillColor(getSeries(5),new Color(125,167,125));
setPlace(true);
ENDSTYLE
END

Thanks,
Mathan.S

This message has been edited. Last edited by: <Kathryn Henning>,


WebFOCUS 7.x
Windows, All Outputs
 
Posts: 19 | Registered: January 10, 2012Report This Post
Master
posted Hide Post
Did you try with
setRiserWidth(100);

Thanks,
Ram
 
Posts: 542 | Location: Dearborn, MI | Registered: June 03, 2009Report This Post
Member
posted Hide Post
Hi Prasad,

Thanks for the reply..
The command which you have given"setRiserWidth(30);" is used set the width of the bar. My need is to set space between the two bars. I thought of this "setRiserBarGroupSpacing(0);" command will help me. But not able to set space using that command too. Any other suggestion please?

Regards,
Mathan.S


WebFOCUS 7.x
Windows, All Outputs
 
Posts: 19 | Registered: January 10, 2012Report This Post
Member
posted Hide Post
quote:
setRiserWidth(30);

Hello, In JSCHART don`t work? Why?

Thanks,
María


WebFOCUS 8.07,
Windows, All Outputs
 
Posts: 15 | Registered: March 31, 2014Report This Post
Master
posted Hide Post
quote:
space between the two bars

quote:
"setRiserWidth(30);" is used set the width of the bar.


IBI Documentation: The riser width is expressed as a percentage of the space available for each
group of bars. When this property is set to 100, all bars touch each other and there is no
space in between them. When this property is set to zero, the bars are displayed as thin
lines with no space detectable.

try setRiserWidth(100);

Thanks,
Ram
 
Posts: 542 | Location: Dearborn, MI | Registered: June 03, 2009Report This Post
Member
posted Hide Post
quote:
Originally posted by mariapoo:
quote:
setRiserWidth(30);

Hello, In JSCHART don`t work? Why?

Thanks,
María


Hi,
setRiserWidth(30); is working to set width of the bar. But it is not fixing the space between two bars.

Thanks,
Mathan.S


WebFOCUS 7.x
Windows, All Outputs
 
Posts: 19 | Registered: January 10, 2012Report This Post
Member
posted Hide Post
quote:
Hi,
setRiserWidth(30); is working to set width of the bar. But it is not fixing the space between two bars.

yes, but isn´t work in JSCHART HTML5. why??


WebFOCUS 8.07,
Windows, All Outputs
 
Posts: 15 | Registered: March 31, 2014Report This Post
Platinum Member
posted Hide Post
I suggest you file a case with CSS to answer your question.


WF 7.7.04, WF 8.0.7, Win7, Win8, Linux, UNIX, Excel, PDF
 
Posts: 175 | Location: Pomona, NY | Registered: August 06, 2003Report 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] How to minimize space between the bars in a bar Graph

Copyright © 1996-2020 Information Builders