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.
I have a chart that overflows its container. The labels for the bars with the minimum and maximum values are placed outside the chart frame. below is a self-contained example. For illustrative purposes, I have background colours on the chart frame and I guess what is called the chart container. The issue occurs in JS Chart or regular versions. I ant to fix it in the JS Chart version. I tried setting the scale based on the minimum and maximum values in the chart, which will work, but if the measure amounts change, the labels may overflow again.
All ideas will be appreciated. Thanking you.
-SET &ECHO=ALL;
FILEDEF MASTER DISK hrollup2.mas
-RUN
-WRITE MASTER FILENAME=HROLLUP2, SUFFIX=FIX , IOTYPE=STREAM, $
-WRITE MASTER SEGMENT=HROLLUP2, SEGTYPE=S2, $
-WRITE MASTER FIELDNAME=SORT_SEQ, ALIAS=E01, USAGE=I1, ACTUAL=A01, $
-WRITE MASTER FIELDNAME=SHORT_NAME, ALIAS=E02, USAGE=A12, ACTUAL=A12, $
-WRITE MASTER FIELDNAME=WEIGHT, ALIAS=E03, USAGE=D10.2, ACTUAL=A10, $
FILEDEF HROLLUP2 DISK HROLLUP2
-RUN
-WRITE HROLLUP2 1APPLES 5.08
-WRITE HROLLUP2 2BANANAS 75.99
-WRITE HROLLUP2 3CANTALOUPES 8.50
-WRITE HROLLUP2 4DATES 4.35
-WRITE HROLLUP2 5ELDERBERRIES 7.83
-WRITE HROLLUP2 6FIGS 21.88
-WRITE HROLLUP2 7GRAPES -12.77
-* determine minimum and maximum values to ensure chart fits properly
TABLE FILE HROLLUP2
SUM
MIN.WEIGHT AS 'MIN_WEIGHT'
MAX.WEIGHT AS 'MAX_WEIGHT'
ON TABLE SET ASNAMES ON
ON TABLE HOLD AS HMINMAX
END
-RUN
-READFILE HMINMAX
-SET &MIN_WEIGHT = &MIN_WEIGHT - 10;
-SET &MAX_WEIGHT = &MAX_WEIGHT + 10;
-* create chart
ENGINE INT CACHE SET ON
-SET &WF_STYLE_UNITS='PIXELS';
-SET &WF_STYLE_HEIGHT='220.0';
-SET &WF_STYLE_WIDTH='470.0';
GRAPH FILE HROLLUP2
-* Originally created by Info Assist for Graph
SUM
WEIGHT AS 'Weight'
BY SORT_SEQ NOPRINT
BY SHORT_NAME AS 'Fruit'
-*ON GRAPH HOLD AS HOLD_CHART FORMAT HTMTABLE
ON GRAPH HOLD AS HOLD_CHART FORMAT JSCHART
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 2
ON GRAPH SET LOOKGRAPH HBAR
-*ON GRAPH SET AUTOFIT ON
ON GRAPH SET STYLE *
*GRAPH_SCRIPT
setPieDepth(0);
setPieTilt(0);
setDepthRadius(0);
setCurveFitEquationDisplay(false);
setPlace(true);
setScaleMin(getY1Axis(), &MIN_WEIGHT );
setScaleMax(getY1Axis(), &MAX_WEIGHT );
*END
INCLUDE=IBFS:/FILE/IBI_HTML_DIR/javaassist/intl/EN/ENIADefault_combine.sty,$
TYPE=REPORT, TITLETEXT='Exposure Mix Distribution', $
*GRAPH_SCRIPT
setToolTipDisplay(false);
setReportParsingErrors(false);
setSelectionEnableMove(false);
setDisplay(getO1Title(),false);
setDisplay(getDataText(0), true);
setDisplay(getY1Title(),false);
setTextFormatPreset(getDataText(),30);
setDisplay(getDataText(),true);
setUseNegativeDataTextColor(true);
setColorMode(2);
setDisplay(getY1Label(),false);
setFontName(getO1Label(),"CALIBRI");
setFontSizeAbsolute(getO1Label(), true);
setFontSizeInPoints(getO1Label(), 10);
setPlaceResize(getO1Label(), 0);
setFontSizeAbsolute(getDataText(),true);
setAutofit(getDataText(),false);
setFontSizeInPoints(getDataText(),10);
setPlaceResize(getDataText(),0);
setFontName(getDataText(),"CALIBRI");
setTransparentFillColor(getFrame(),true);
setFrameAutoShade(false);
setTransparentFillColor(getFrameSide(),true);
setTransparentBorderColor(getFrameSide(),true);
setTransparentFillColor(getFrameBottom(),true);
setTransparentBorderColor(getFrameBottom(),true);
setDisplay(getY1MajorGrid(),false);
setPieTilt(0);
setPieDepth(0);
setDepthRadius(0);
setDepthAngle(0);
setFillColor(getFrame(),new Color(225,225,231));
setDisplay(getO1MajorGrid(),false);
setDataTextPosition(1);
*GRAPH_JS
fill: {color: 'silver' },
chartFrame: { fill: { color: 'yellow' } },
"mouseOverIndicator": {
"enabled": true,
"color": "rgba(255,255,255,0.3)",
"marker": {"size": 0}
},
"riserBevel": "none"
,"yaxis": {
"baseLineStyle": {"width": 2, "color": "rgb(120, 120, 120)"},
"bodyLineStyle": {"width": 0, "color": "white"}
}
,"xaxisOrdinal": {
"bodyLineStyle": {"width": 0, "color": "white"}
}
*END
ENDSTYLE
END
-RUN
-HTMLFORM BEGIN
<html>
<head>
<title></title>
</head>
<body>
!IBI.FIL.HOLD_CHART;
</body>
</html>
-HTMLFORM END
Image to follow, the Amazon cloud is falling apart...This message has been edited. Last edited by: Francis Mariani,
Francis
Give me code, or give me retirement. In FOCUS since 1991
Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
This seems to happen when the difference between the min and max is large, so maybe some other calculation for the extreme values will work...This message has been edited. Last edited by: Francis Mariani,
Francis
Give me code, or give me retirement. In FOCUS since 1991
Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server