Focal Point
[SOLVED]Multiple Graphs side by side

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/2547009486

December 14, 2016, 11:09 AM
Krishna.edara
[SOLVED]Multiple Graphs side by side
Hello,
I tried to print two horizontal stack bar graphs side by side but some how extra bar graph is hiding my first stack graph, please let me know if I`m missing something, here is my code

 
GRAPH FILE CAR
PRINT DEALER_COST RETAIL_COST
BY CAR
WHERE CAR EQ 'JENSEN'
HEADING
"Previous Month"
ON GRAPH HOLD AS ONE FORMAT JSCHART
ON GRAPH SET VZERO OFF
ON GRAPH SET HTMLENCODE ON
ON GRAPH SET GRAPHDEFAULT OFF
ON GRAPH SET HAXIS 400.0
ON GRAPH SET VAXIS 150.0
ON GRAPH SET GRMERGE ADVANCED
ON GRAPH SET GRMULTIGRAPH 0
ON GRAPH SET GRLEGEND 0
ON GRAPH SET GRXAXIS 1
ON GRAPH SET LOOKGRAPH HBRSTKPC
ON GRAPH SET STYLE *
*GRAPH_SCRIPT
setPieDepth(0);
setPieTilt(0);
setDepthRadius(0);
setCurveFitEquationDisplay(false);
setPlace(true);
*END
INCLUDE=IBFS:/FILE/IBI_HTML_DIR/javaassist/intl/EN/ENIADefault_combine.sty,$
TYPE=HEADING, JUSTIFY=CENTER, FONT='Trebuchet MS', SIZE=9, COLOR=RGB(66 70 73), STYLE=BOLD, $
*GRAPH_SCRIPT
setReportParsingErrors(false);
setSelectionEnableMove(false);
setFillColor(getSeries(0),new Color(128,128,128));
setFillColor(getSeries(1),new Color(255,0,0));
setFillColor(getSeries(2),new Color(128,128,255));
setDisplay(getDataText(2), false);
setDisplay(getDataText(1), false);
setDisplay(getDataText(0), false);
setTextString(getO1Title(),"");
*END
ENDSTYLE
END
-RUN
GRAPH FILE CAR
PRINT DEALER_COST RETAIL_COST
BY CAR
WHERE CAR EQ 'JENSEN'
HEADING
"Current Month"
ON GRAPH HOLD AS TWO FORMAT JSCHART
ON GRAPH SET VZERO OFF
ON GRAPH SET HTMLENCODE ON
ON GRAPH SET GRAPHDEFAULT OFF
ON GRAPH SET HAXIS 400.0
ON GRAPH SET VAXIS 150.0
ON GRAPH SET GRMERGE ADVANCED
ON GRAPH SET GRMULTIGRAPH 0
ON GRAPH SET GRLEGEND 0
ON GRAPH SET GRXAXIS 1
ON GRAPH SET LOOKGRAPH HBRSTKPC
ON GRAPH SET STYLE *
*GRAPH_SCRIPT
setPieDepth(0);
setPieTilt(0);
setDepthRadius(0);
setCurveFitEquationDisplay(false);
setPlace(true);
*END
INCLUDE=IBFS:/FILE/IBI_HTML_DIR/javaassist/intl/EN/ENIADefault_combine.sty,$
TYPE=HEADING, JUSTIFY=CENTER, FONT='Trebuchet MS', SIZE=9, COLOR=RGB(66 70 73), STYLE=BOLD, $
*GRAPH_SCRIPT
setReportParsingErrors(false);
setSelectionEnableMove(false);
setFillColor(getSeries(0),new Color(128,128,128));
setFillColor(getSeries(1),new Color(255,0,0));
setFillColor(getSeries(2),new Color(128,128,255));
setDisplay(getDataText(2), false);
setDisplay(getDataText(1), false);
setDisplay(getDataText(0), false);
setTextString(getO1Title(),"");
*END
ENDSTYLE
END
-RUN
-HTMLFORM BEGIN

<html>

<head>
</head>

<body>
<table>
    <tr>
        <td>!IBI.FIL.ONE;</td><td>!IBI.FIL.TWO;</td>
    </tr>
</table>
</body>
</html>
-HTMLFORM END
-EXIT
 

This message has been edited. Last edited by: Tamra,


WebFocus-8/Windows/HTML, PDF, EXCEL
December 14, 2016, 11:28 AM
Francis Mariani
The charts look good side-by-side in WF 8.0.08. IE 11 and Chrome.


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
December 14, 2016, 11:46 AM
Krishna.edara
Hi Francis,
I`m getting two charts side by side, but my first graph is masked with bar graph (I think default graph), my actual graph is hiding behind the bar graph which I can see the heading of the first graph, when I ran individually, they are good

My Dev studio is 8.0.08 and using IE 11


WebFocus-8/Windows/HTML, PDF, EXCEL
December 14, 2016, 11:55 AM
Francis Mariani
Here's a screenshot:




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
December 14, 2016, 12:16 PM
Squatch
This does not work for me when tested in App Studio. I experience the same problem as Krishna.

When run from the WebFOCUS portal, however, I get the two charts side by side.


App Studio
WebFOCUS 8.1.05M
Windows, All Outputs
December 14, 2016, 12:35 PM
David Briars
quote:
but my first graph is masked with bar graph (I think default graph),

Sounds like you are running in IE Compatibility View.

Try turning off IE compatibility view or see the following for a compatibility tag you can try adding:
http://forums.informationbuild...487074386#1487074386
December 14, 2016, 01:01 PM
Francis Mariani


Yes, it appears to be an IE compatibility mode issue.


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
December 14, 2016, 03:54 PM
Squatch
quote:
Originally posted by Squatch:
This does not work for me when tested in App Studio. I experience the same problem as Krishna.

When run from the WebFOCUS portal, however, I get the two charts side by side.

Okay, just upgraded from 8.1.05 to 8.1.05M and now I do get two charts side by side in App Studio!

The upgrade is not complete, however, because I have not installed the 8.1.05M version of App Studio. Still using 8.1.05.


App Studio
WebFOCUS 8.1.05M
Windows, All Outputs