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] Multiple Graphs

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Multiple Graphs
 Login/Join
 
Platinum Member
posted
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,


WebFocus-8/Windows/HTML, PDF, EXCEL
 
Posts: 106 | Registered: September 20, 2010Report This Post
Silver Member
posted Hide Post
HI Krishna,
Use PDF compound layout as shown in below example. Else save the Graph as image and position it in the report.


 
SET HTMLARCHIVE=ON
COMPOUND LAYOUT PCHOLD FORMAT PDF
UNITS=IN, $
SECTION=section1, LAYOUT=ON, METADATA='0.5^0.5^0.5^0.5^4', MERGE=OFF, ORIENTATION=PORTRAIT, PAGESIZE=A3, SHOW_GLOBALFILTER=OFF, $
PAGELAYOUT=1, NAME='Page layout 1', text='Page layout 1', TOC-LEVEL=1, BOTTOMMARGIN=0.5, TOPMARGIN=0.5, METADATA='BOTTOMMARGIN=0.5,TOPMARGIN=0.5,LEFTMARGIN=0,RIGHTMARGIN=0,', $
COMPONENT='graph1', TEXT='graph1', TOC-LEVEL=2, POSITION=(0.321 2.292), DIMENSION=(11.000 3.500), COMPONENT-TYPE=GRAPH, METADATA='Z-INDEX: 100; POSITION: absolute; WIDTH: 11in; HEIGHT: 3.5in; TOP: 2.292in; LEFT: 0.321in', $
COMPONENT='graph2', TEXT='graph2', TOC-LEVEL=2, POSITION=(0.321 7.063), DIMENSION=(11.000 3.500), COMPONENT-TYPE=GRAPH, METADATA='Z-INDEX: 100; POSITION: absolute; WIDTH: 11in; HEIGHT: 3.5in; TOP: 7.063in; LEFT: 0.321in', $
END

EX CHART1
-RUN
 
-*graph2
EX CHART2
-RUN


WebFOCUS 8.1.03
Windows, Linux All Outputs
 
Posts: 46 | Location: India | Registered: August 18, 2011Report This Post
Platinum Member
posted Hide Post
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 


WebFocus-8/Windows/HTML, PDF, EXCEL
 
Posts: 106 | Registered: September 20, 2010Report This Post
Expert
posted Hide Post
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
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Expert
posted Hide Post


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
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Platinum Member
posted Hide Post
Thank you Francis,
But I`m getting Java script error if I include
 title: {
    text: '!IBI.AMP.WF_TITLE_CURRENT;',
    visible: true,
    align: 'center',
    font: 'bold 10pt Sans-Serif',
    color: 'black',
} 
, "Expected identifier or number".

But when I remove this piece of code, first graph is turning into Bar graph instead of Pie

Any idea why this is not working for me?

Thanks,

This message has been edited. Last edited by: Krishna.edara,


WebFocus-8/Windows/HTML, PDF, EXCEL
 
Posts: 106 | Registered: September 20, 2010Report 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] Multiple Graphs

Copyright © 1996-2020 Information Builders