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] Horizontal Graph Layout

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Horizontal Graph Layout
 Login/Join
 
Member
posted
I have been trying to create a horizontal graph with out any background grid and data values next to each bar.

Can anyone suggest me how I can only show the Y-Axis and its horizontal Bars.


Right now our graph looks like in this link:
Horizontal Frquency Bar graph (last)
http://online.morainevalley.ed...oject_united_way.htm

We would like to see it as shown in this link:
http://www.aip.de/~weber/doc/j...ame_horizbarex1.html

we are using the following code:
"
ON GRAPH HOLD AS SSGRAPH FORMAT SVG
ON GRAPH SET VZERO OFF
ON GRAPH SET HTMLENCODE ON
ON GRAPH SET GRAPHDEFAULT OFF
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 ON
-*ON GRAPH SET GRMULTIGRAPH 1
-*ON GRAPH SET GRLEGEND 0
-*ON GRAPH SET GRXAXIS 0
ON GRAPH SET LOOKGRAPH HBAR2AX
ON GRAPH SET GRAPHSTYLE *
setTemplateFile("/images/tdg/template/IBISouthWestern.txt");
setReportParsingErrors(false);
setSelectionEnableMove(false);
setTransparentBorderColor(getSeries(0),true);
setTransparentBorderColor(getSeries(1),true);
setTransparentBorderColor(getChartBackground(),true);
setPlace(true);
setDepthRadius(0);
setDepthAngle(0);
setTextString(getO1Title()," ");
setAxisAssignment(getSeries(0),0);
setAxisAssignment(getSeries(1),0);
setSeriesType(getSeries(1),0);
setFillColor(getSeries(0),new Color(99,142,197));
setFillColor(getSeries(1),new Color(99,142,197));
setFillColor(getSeries(2),new Color(99,142,197));
setFillColor(getSeries(3),new Color(99,142,197));
setFillColor(getSeries(4),new Color(99,142,197));
setFillColor(getSeries(5),new Color(99,142,197));
setTextString(getY1Title()," ");
setDisplay(getY1Title(),true);
setTitleString("Stakeholder");
setDisplay(getY1MajorGrid(),true)
setGridStyle(getY1MajorGrid(),0);
setDisplay(getY1MajorTick(),false);
setO1MajorGridDisplay(false);
setUseSeriesShapes(true);
setMarkerShape(getSeries(0), 1);
"

Many Thanks for your support

This message has been edited. Last edited by: <Kathryn Henning>,
 
Posts: 5 | Registered: March 12, 2014Report This Post
Gold member
posted Hide Post
Is that the Solution you are looking for?:


GRAPH FILE CAR
SUM CAR.BODY.DEALER_COST CAR.BODY.RETAIL_COST
BY CAR.CARREC.MODEL
ON GRAPH SET LOOKGRAPH HBAR
ON GRAPH SET GRAPHEDIT SERVER
ON GRAPH SET BARNUMB ON
ON GRAPH SET 3D OFF
ON GRAPH SET VZERO ON
ON GRAPH SET GRID ON
ON GRAPH PCHOLD FORMAT PNG
ON GRAPH SET GRAPHSTYLE *
setMarkerDisplay(true);
setConnectLineMarkers(false);
setConnectScatterMarkers(false);
setO1LabelDisplay(true);
setO1AxisSide(0);
setO1MajorGridDisplay(false);
setO1MinorGridDisplay(false);
setAxisAssignment(0,0);
setSeriesType(0,1);
setAxisAssignment(1,0);
setSeriesType(1,1);
setY1LabelDisplay(false);
setY1MajorGridDisplay(false);
setY1MinorGridDisplay(false);
setTextFormatPreset(getY1Label(),-1);
setTextFormatPattern(getY1Label(),"#.##");
setPieFeelerTextDisplay(1);
setPieLabelDisplay(2);
setTextFormatPreset(getPieSliceLabel(),1);
setRiserBorderMode(1);
setSeriesDefaultTransparentBorderColor(true);
setUseSeriesBorderDefaults(true);
setLegendDisplay(true);
setFontSizeAbsolute(getY1Title(),true);
setFontSizeAbsolute(getY1Label(),true);
setFontSizeAbsolute(getY2Title(),true);
setFontSizeAbsolute(getY2Label(),true);
setFontSizeAbsolute(getO1Title(),true);
setPlace(true);
ENDSTYLE
ON GRAPH SET STYLE *
$
ENDSTYLE
END



WebFOCUS 7.6, 7.7
Windows, All Output formats
 
Posts: 90 | Location: Stuttgart | Registered: October 20, 2010Report This Post
Member
posted Hide Post
Dear Michael,

Thank you for your inputs, but unfortuntaly, i am not looking your solution.

Please have alook at the blow link, which is exact style iam looking for,

Check UNIT 1 graph layout
http://www.graphomate.com/en/m...ic-presentation.html

Many Thanks once again


WebFOCUS 8.004
Unix, PDF
 
Posts: 5 | Registered: March 12, 2014Report This Post
Expert
posted Hide Post
So, you've currently got this -

but you want this (with no lower axis) -



If so then Michael gave the answer within his code (there may be other code that you need) -
setY1LabelDisplay(false);
setY1MajorGridDisplay(false);
setY1MinorGridDisplay(false);


If this is not what you are after then please be a little more descriptive such as "I need to produce a horizontal bar chart with only the axis showing, plus two series of data, each shown as a bar but overlapping each other. I also need to show data values appearing at the end of the horizontal bars" etc. etc. etc.

Hopefully we can then try and assist you Smiler

T

This message has been edited. Last edited by: Tony A,



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
Expert
posted Hide Post
... also, how are you coding this? Manually or using the GUI?

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
Member
posted Hide Post
Dear Tony,

Thank you for your feedback.

I am using code only (without GUI)

I could able to solve some of my issues:

-No Lower axis display
-Data display next to the bar
-Major Grid disable

But now I couldnt able to remove the boarder of the graph.
I tried to use the GUI to change the boarder color white, but report does not let it happen.

Can anyone have any suggestion how to remove the boarders.

Many thanks for your support


WebFOCUS 8.004
Unix, PDF
 
Posts: 5 | Registered: March 12, 2014Report This Post
Expert
posted Hide Post
In the GUI, select the entire chart and then right click for context menu. Select "More Chart & Background Options" and you should find options under "Frame Edge".

On holiday this week but had a call from a colleague asking me to help Smiler

T
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
Member
posted Hide Post
Dear Tony,

Thank you for your support.

Paul was with me and he try to call you when I show this issue to him. But Paul solved the issue now.

ON GRAPH SET VZERO OFF
ON GRAPH SET HTMLENCODE ON
ON GRAPH SET GRAPHDEFAULT OFF
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 ON
ON GRAPH SET LOOKGRAPH HBAR
ON GRAPH SET STYLE *
*GRAPH_SCRIPT
setPieDepth(0);
setPieTilt(0);
setDepthRadius(0);
setCurveFitEquationDisplay(false);
setPlace(true);
*END
INCLUDE=endeflt.sty,$
TYPE=REPORT, TITLETEXT='WebFOCUS Report', $
*GRAPH_SCRIPT
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(getChartBackground(),true);
setPlace(true);
setDepthRadius(0);
setDepthAngle(0);
setTextString(getO1Title()," ");
setAxisAssignment(getSeries(0),0);
setAxisAssignment(getSeries(1),0);
setSeriesType(getSeries(1),0);
setFillColor(getSeries(0),new Color(99,142,197));
setFillColor(getSeries(1),new Color(99,142,197));
setFillColor(getSeries(2),new Color(99,142,197));
setFillColor(getSeries(3),new Color(99,142,197));
setFillColor(getSeries(4),new Color(99,142,197));
setFillColor(getSeries(5),new Color(99,142,197));
setTextString(getY1Title()," ");
setDisplay(getY1Title(),true);
setTitleString(" ");
setDisplay(getY1MajorGrid(),false);
setTransparentBorderColor(getFrame(),true);
setTransparentBorderColor(getFrameSide(), true);
setFillColor(getFrame(),new Color(255,255,255));
setDisplay(getO1MajorGrid(),false);
setTransparentFillColor(getFrame(),true);
setDisplay(getDataText(0), true);
setFontName(getDataText(),"ARIAL");
setFontSizeAbsolute(getDataText(),true);
setAutofit(getDataText(),false);
setPlaceResize(getDataText(),0);
setFontStyle(getDataText(),0);
setFrameAutoShade(true);
setDisplay(getY1Label(),false);
setPieTilt(0);
setPieDepth(0);
setDepthRadius(0);
setDepthAngle(0);
setDisplay(getLegendArea(),false);
setFontSizeInPoints(getDataText(),10);
setFillColor(getChartBackground(),new Color(255,255,255,0));
setTransparentBorderColor(getChartBackground(),true);
setDisplay(getY1AxisLine(),false);
*END
ENDSTYLE
END
-RUN


Thank You once again.


WebFOCUS 8.004
Unix, PDF
 
Posts: 5 | Registered: March 12, 2014Report This Post
Member
posted Hide Post
I better provide in CAR graph, users can undertand better by copy and paste the below code.


-SET &ECHO=ALL;
-*IA_GRAPH_BEGIN
-*Do not delete or modify the comments below
*-INTERNAL_COMMENT LINE#0$PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48IS0tMS4wLS0+PFJvb3QgdmVyc2lvbj0iMS4wIj4KICAgIDxPYmplY3Qgb2JqZWN0SWQ9IkNoYXJ0XzEiPgogICAgICAgIDxQcm9wZXJ0eSBuYW1lPSJMaW5rZWRTb3J0cyIgdHlwZT0iamF2YS5sYW5nLlN0cmluZyIvPgogICAgPC9PYmplY3Q+CiAgICA8T2JqZWN0IG9iamVjdElkPSJHTE9CQUwiPgogICAgICAgID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NlPC9FbnRyeT4KICAgICAgICAgICAgPEVudHJ5IGtleT0iZGlzcGxheVNsaWNlcnNUYWJJbnRlcmFjdGl2ZUluZm9NaW5pUHJlZmVyZW5jZSIgdHlwZT0iamF2YS5sYW5nLlN0cmluZyI+dHJ1ZTwvRW50cnk+CiAgICAgICAgICAgIDxFbnRyeSBrZXk9ImRpc3BsYXlSZXNvdXJjZXNGaWVsZFRhYkluZm9NaW5pUHJlZmVyZW5jZSIgdHlwZT0iamF2YS5sYW5nLlN0cmluZyI+ZmFsc2U8L0VudHJ5PgogICAgICAgIDwvUHJvcGVydHk+CiAg
*-INTERNAL_COMMENT LINE#1$ICAgICAgPFByb3BlcnR5IG5hbWU9ImNhc2NhZGVOYW1lcyIgdHlwZT0iTWFwIi8+CiAgICAgICAgPFByb3BlcnR5IG5hbWU9Ik1hc3Rlcl9GaWxlcyIgdHlwZT0iU2V0Ij4KICAgICAgICAgICAgPEVudHJ5IHR5cGU9ImphdmEubGFuZy5TdHJpbmciPkNBUjwvRW50cnk+CiAgICAgICAgPC9Qcm9wZXJ0eT4KICAgICAgICA8UHJvcGVydHkgbmFtZT0iZW5hYmxlUHJldmlldyIgdHlwZT0iamF2YS5sYW5nLkJvb2xlYW4iPnRydWU8L1Byb3BlcnR5PgogICAgPC9PYmplY3Q+CjwvUm9vdD4=
-*Do not delete or modify the comments above
ENGINE INT CACHE SET ON
-DEFAULTH &WF_STYLE_UNITS='PIXELS';
-DEFAULTH &WF_STYLE_HEIGHT='405.0';
-DEFAULTH &WF_STYLE_WIDTH='770.0';
GRAPH FILE CAR
-* Created by Info Assist for Graph
SUM CAR.BODY.RETAIL_COST
CAR.BODY.DEALER_COST
BY CAR.ORIGIN.COUNTRY
ON GRAPH PCHOLD FORMAT PNG
ON GRAPH SET VZERO OFF
ON GRAPH SET HTMLENCODE ON
ON GRAPH SET GRAPHDEFAULT OFF
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 HBAR
ON GRAPH SET STYLE *
*GRAPH_SCRIPT
setPieDepth(0);
setPieTilt(0);
setDepthRadius(0);
setCurveFitEquationDisplay(false);
setPlace(true);
*END
INCLUDE=endeflt.sty,$
TYPE=REPORT, TITLETEXT='WebFOCUS Report', $
*GRAPH_SCRIPT
setReportParsingErrors(false);
setSelectionEnableMove(false);
setDisplay(getY1MajorGrid(),false);
setTransparentBorderColor(getFrame(),true);
setTransparentBorderColor(getFrameSide(), true);
setFillColor(getFrame(),new Color(255,255,255));
setDisplay(getO1MajorGrid(),false);
setTransparentFillColor(getFrame(),true);
setDisplay(getDataText(0), true);
setFontName(getDataText(),"ARIAL");
setFontSizeAbsolute(getDataText(),true);
setAutofit(getDataText(),false);
setPlaceResize(getDataText(),0);
setFontStyle(getDataText(),0);
setFrameAutoShade(true);
setDisplay(getY1Label(),false);
setPieTilt(0);
setPieDepth(0);
setDepthRadius(0);
setDepthAngle(0);
setDisplay(getLegendArea(),false);
setFontSizeInPoints(getDataText(),10);
setFillColor(getChartBackground(),new Color(255,255,255,0));
setTransparentBorderColor(getChartBackground(),true);
setDisplay(getY1AxisLine(),false);
*END
ENDSTYLE
END
-*IA_GRAPH_FINISH


WebFOCUS 8.004
Unix, PDF
 
Posts: 5 | Registered: March 12, 2014Report 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] Horizontal Graph Layout

Copyright © 1996-2020 Information Builders