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.
Hi, How can we place 2 graphs side by side, right now it is over lapping each other. Thanks in advance, Thanks,This message has been edited. Last edited by: Tamra,
Can some one please tell me where I`m doing wrong, Graph is not displaying.
-DEFAULTH &WF_STYLE_UNITS1='PIXELS';
-DEFAULTH &WF_STYLE_HEIGHT1='300.0';
-DEFAULTH &WF_STYLE_WIDTH1='500.0';
GRAPH FILE CAR
SUM DEALER_COST
BY CAR
WHERE BODYTYPE EQ 'SEDAN'
ON GRAPH PCHOLD FORMAT JSCHART
ON GRAPH SET VZERO OFF
ON GRAPH SET HTMLENCODE ON
ON GRAPH SET GRAPHDEFAULT OFF
ON GRAPH SET GRMERGE ADVANCED
ON GRAPH SET GRMULTIGRAPH 0
ON GRAPH SET GRLEGEND 0
ON GRAPH SET GRXAXIS 1
ON GRAPH SET LOOKGRAPH PIEMULTI
ON GRAPH SET AUTOFIT OFF
ON GRAPH SET UNITS &WF_STYLE_UNITS1
ON GRAPH SET HAXIS &WF_STYLE_WIDTH1
ON GRAPH SET VAXIS &WF_STYLE_HEIGHT1
ON GRAPH HOLD AS PREVIOUS FORMAT GIF
ON GRAPH SET STYLE *
*GRAPH_SCRIPT
setPieDepth(0);
setPieTilt(0);
setDepthRadius(0);
setCurveFitEquationDisplay(false);
setPlace(true);
setPieFeelerTextDisplay(1);
*END
INCLUDE=IBFS:/FILE/IBI_HTML_DIR/javaassist/intl/EN/ENIADefault_combine.sty,$
TYPE=REPORT, TITLETEXT=&WF_TITLE.QUOTEDSTRING, $
*GRAPH_SCRIPT
setReportParsingErrors(false);
setSelectionEnableMove(false);
setPieFeelerTextDisplay(3);
setDisplay(getLegendArea(),false);
setDisplay(getPieLabel(),false);
setMarkerDisplay(true);
setConnectLineMarkers(false);
setConnectScatterMarkers(false);
setO1LabelDisplay(true);
setO1AxisSide(0);
setO1MajorGridDisplay(true);
setO1MajorGridStyle(0);
setO1MinorGridDisplay(false);
setAxisAssignment(0,0);
setSeriesType(0,0);
setY1LabelDisplay(true);
setY1AxisSide(0);
setY1MajorGridDisplay(true);
setY1MajorGridStyle(0);
setY1MinorGridDisplay(false);
setTextFormatPreset(getY1Label(),-1);
setTextFormatPattern(getY1Label(),"#.##");
setPieFeelerTextDisplay(1);
setTextFormatPreset(getPieSliceLabel(),1);
setRiserBorderMode(1);
setSeriesDefaultTransparentBorderColor(true);
setUseSeriesBorderDefaults(true);
setLegendDisplay(false);
setFontSizeAbsolute(getY1Title(),true);
setFontSizeAbsolute(getY1Label(),true);
setFontSizeAbsolute(getY2Title(),true);
setFontSizeAbsolute(getY2Label(),true);
setFontSizeAbsolute(getO1Title(),true);
-*setPieFeelerTextDisplay(1);
-* 0 = Absolute (true) value of slice, 1 = Percent value of slice, 2 = Series Label, 3 = Series Label and Percent value
setPieLabelDisplay(6);
-*setPieLabelDisplay(4);
setPlace(true);
*END
*GRAPH_JS
"series": [{
"series": "reset",
"border": {
"color": "#FFFFFF",
"width": 0
}
}],
*END
TYPE=HEADING,STYLE=BOLD,LINE=1,SIZE=9,JUSTIFY=LEFT,$
ENDSTYLE
END
-RUN
TABLE FILE CAR
SUM DEALER_COST
BY CAR
WHERE BODYTYPE EQ 'SEDAN'
ON TABLE HOLD AS REPORT FORMAT HTMTABLE
END
-HTMLFORM BEGIN
<HTML>
<BODY>
<table>
<td>!IBI.IMG.CURRENT;!IBI.FIL.REPORT;</td>
</table>
</BODY>
</HTML>
-HTMLFORM END
-EXIT
Besides a few other issues, you have PCHOLD and HOLD in the GRAPH FILE - since the PCHOLD comes first, it overrides HOLD and the image is not available for the HTMLFORM.
Where did you find the syntax !IBI.IMG.filename;? I don't think this exists.
Here's a working example:
-DEFAULTH &WF_STYLE_UNITS1='PIXELS';
-DEFAULTH &WF_STYLE_HEIGHT1='300';
-DEFAULTH &WF_STYLE_WIDTH1='500';
-DEFAULTH &WF_TITLE_CURRENT = 'MY TITLE - CURRENT';
-DEFAULTH &WF_TITLE_PREVIOUS = 'MY TITLE - PREVIOUS';
GRAPH FILE CAR
SUM DEALER_COST
BY CAR
WHERE COUNTRY EQ 'ITALY'
ON GRAPH HOLD AS HPREVIOUS FORMAT JSCHART
ON GRAPH SET VZERO OFF
ON GRAPH SET HTMLENCODE ON
ON GRAPH SET GRAPHDEFAULT OFF
ON GRAPH SET GRMERGE ADVANCED
ON GRAPH SET GRMULTIGRAPH 0
ON GRAPH SET GRLEGEND 0
ON GRAPH SET GRXAXIS 1
ON GRAPH SET LOOKGRAPH PIEMULTI
ON GRAPH SET AUTOFIT OFF
ON GRAPH SET UNITS &WF_STYLE_UNITS1
ON GRAPH SET HAXIS &WF_STYLE_WIDTH1
ON GRAPH SET VAXIS &WF_STYLE_HEIGHT1
ON GRAPH SET STYLE *
*GRAPH_SCRIPT
setPieDepth(0);
setPieTilt(0);
setDepthRadius(0);
setCurveFitEquationDisplay(false);
setPlace(true);
setPieFeelerTextDisplay(1);
*END
INCLUDE=IBFS:/FILE/IBI_HTML_DIR/javaassist/intl/EN/ENIADefault_combine.sty,$
TYPE=REPORT, TITLETEXT=&WF_TITLE_PREVIOUS.QUOTEDSTRING, $
*GRAPH_SCRIPT
setReportParsingErrors(false);
setSelectionEnableMove(false);
setPieFeelerTextDisplay(3);
setDisplay(getLegendArea(),false);
setDisplay(getPieLabel(),false);
setMarkerDisplay(true);
setConnectLineMarkers(false);
setConnectScatterMarkers(false);
setO1LabelDisplay(true);
setO1AxisSide(0);
setO1MajorGridDisplay(true);
setO1MajorGridStyle(0);
setO1MinorGridDisplay(false);
setAxisAssignment(0,0);
setSeriesType(0,0);
setY1LabelDisplay(true);
setY1AxisSide(0);
setY1MajorGridDisplay(true);
setY1MajorGridStyle(0);
setY1MinorGridDisplay(false);
setTextFormatPreset(getY1Label(),-1);
setTextFormatPattern(getY1Label(),"#.##");
setPieFeelerTextDisplay(1);
setTextFormatPreset(getPieSliceLabel(),1);
setRiserBorderMode(1);
setSeriesDefaultTransparentBorderColor(true);
setUseSeriesBorderDefaults(true);
setLegendDisplay(false);
setFontSizeAbsolute(getY1Title(),true);
setFontSizeAbsolute(getY1Label(),true);
setFontSizeAbsolute(getY2Title(),true);
setFontSizeAbsolute(getY2Label(),true);
setFontSizeAbsolute(getO1Title(),true);
-*setPieFeelerTextDisplay(1);
-* 0 = Absolute (true) value of slice, 1 = Percent value of slice, 2 = Series Label, 3 = Series Label and Percent value
setPieLabelDisplay(6);
-*setPieLabelDisplay(4);
setPlace(true);
*END
*GRAPH_JS
"series": [{
"series": "reset",
"border": {
"color": "#FFFFFF",
"width": 0
}
}],
title: {
text: '!IBI.AMP.WF_TITLE_PREVIOUS;',
visible: true,
align: 'center',
font: 'bold 10pt Sans-Serif',
color: 'black',
}
*END
END
-RUN
GRAPH FILE CAR
SUM DEALER_COST
BY CAR
WHERE BODYTYPE EQ 'SEDAN'
ON GRAPH HOLD AS HCURRENT FORMAT JSCHART
ON GRAPH SET VZERO OFF
ON GRAPH SET HTMLENCODE ON
ON GRAPH SET GRAPHDEFAULT OFF
ON GRAPH SET GRMERGE ADVANCED
ON GRAPH SET GRMULTIGRAPH 0
ON GRAPH SET GRLEGEND 0
ON GRAPH SET GRXAXIS 1
ON GRAPH SET LOOKGRAPH PIEMULTI
ON GRAPH SET AUTOFIT OFF
ON GRAPH SET UNITS &WF_STYLE_UNITS1
ON GRAPH SET HAXIS &WF_STYLE_WIDTH1
ON GRAPH SET VAXIS &WF_STYLE_HEIGHT1
-*ON GRAPH HOLD AS PREVIOUS FORMAT GIF
ON GRAPH SET STYLE *
*GRAPH_SCRIPT
setPieDepth(0);
setPieTilt(0);
setDepthRadius(0);
setCurveFitEquationDisplay(false);
setPlace(true);
setPieFeelerTextDisplay(1);
*END
INCLUDE=IBFS:/FILE/IBI_HTML_DIR/javaassist/intl/EN/ENIADefault_combine.sty,$
TYPE=REPORT, TITLETEXT=&WF_TITLE_CURRENT.QUOTEDSTRING, $
*GRAPH_SCRIPT
setReportParsingErrors(false);
setSelectionEnableMove(false);
setPieFeelerTextDisplay(3);
setDisplay(getLegendArea(),false);
setDisplay(getPieLabel(),false);
setMarkerDisplay(true);
setConnectLineMarkers(false);
setConnectScatterMarkers(false);
setO1LabelDisplay(true);
setO1AxisSide(0);
setO1MajorGridDisplay(true);
setO1MajorGridStyle(0);
setO1MinorGridDisplay(false);
setAxisAssignment(0,0);
setSeriesType(0,0);
setY1LabelDisplay(true);
setY1AxisSide(0);
setY1MajorGridDisplay(true);
setY1MajorGridStyle(0);
setY1MinorGridDisplay(false);
setTextFormatPreset(getY1Label(),-1);
setTextFormatPattern(getY1Label(),"#.##");
setPieFeelerTextDisplay(1);
setTextFormatPreset(getPieSliceLabel(),1);
setRiserBorderMode(1);
setSeriesDefaultTransparentBorderColor(true);
setUseSeriesBorderDefaults(true);
setLegendDisplay(false);
setFontSizeAbsolute(getY1Title(),true);
setFontSizeAbsolute(getY1Label(),true);
setFontSizeAbsolute(getY2Title(),true);
setFontSizeAbsolute(getY2Label(),true);
setFontSizeAbsolute(getO1Title(),true);
-*setPieFeelerTextDisplay(1);
-* 0 = Absolute (true) value of slice, 1 = Percent value of slice, 2 = Series Label, 3 = Series Label and Percent value
setPieLabelDisplay(6);
-*setPieLabelDisplay(4);
setPlace(true);
*END
*GRAPH_JS
"series": [{
"series": "reset",
"border": {
"color": "#FFFFFF",
"width": 0
}
}],
title: {
text: '!IBI.AMP.WF_TITLE_CURRENT;',
visible: true,
align: 'center',
font: 'bold 10pt Sans-Serif',
color: 'black',
}
*END
END
-RUN
-HTMLFORM BEGIN
<html>
<head>
<title>My Charts</title>
<style>
td { margin: 10px; padding: 10px 50px 10px 50px; border: 1px dotted red; }
</style>
</head>
<body>
<table>
<tr>
<td>!IBI.FIL.HPREVIOUS;</td><td!IBI.FIL.HCURRENT;</td>
</tr>
</table>
</body>
</html>
-HTMLFORM END
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