MyFusion

Members
  • Content count

    2
  • Joined

  • Last visited

Everything posted by MyFusion

  1. I am able to display the fusionchart while deploying the application as exploded format, Its not displaying the chart if the application was deployed in ear format. Please let me know what was the problem. Please find the code below : [<% BarChartObj[] scrObj = (BarChartObj[])session.getAttribute("chart"); System.out.println("src Object size = "+scrObj.length); StringBuffer sbMV = new StringBuffer(); StringBuffer sbLV = new StringBuffer(); StringBuffer sbEV = new StringBuffer(); StringBuffer sbExV = new StringBuffer(); for(int i=0;i<scrObj.length;i++) { sbMV.append("<set value='"+scrObj.getMKTVAL()+"'/>"); sbLV.append("<set value='"+scrObj.getLOANABLE_VAL()+"'/>"); sbEV.append("<set value='"+scrObj.getEXPOSURE_AMT()+"'/>"); sbExV.append("<set value='"+scrObj.getEXCEPTION_AMT()+"'/>"); } String marketValue = null; String lonableValue = null; String exposureValue = null; String exceptionValue = null; marketValue = sbMV.toString(); lonableValue = sbLV.toString(); exposureValue = sbEV.toString(); exceptionValue = sbExV.toString(); String xmlString = "<chart bgColor='#91E3FF' caption='Exception Summary Chart' decimals='6' legendBorderAlpha='0' palette='5' showAboutMenuItem='0' shownames='1' showvalues='0' useRoundEdges='1' xAxisName='Day' yAxisName='Value in USD'><categories><category label='2010-04-02'/><category label='2010-03-30'/><category label='2010-03-29'/><category label='2010-03-26'/><category label='2007-04-30'/><category label='2007-04-27'/><category label='2007-04-26'/></categories><dataset color='AFD8F8' seriesName='Market Value' showValues='0'>"+marketValue+"</dataset><dataset color='F6BD0F' seriesName='Lonable Value' showValues='0'>"+lonableValue+"</dataset><dataset color='FF0000' seriesName='Exposure Value' showValues='0'>"+exposureValue+"</dataset><dataset color='666666' seriesName='Exception Value' showValues='0'>"+exceptionValue+"</dataset></chart>"; System.out.println("xmlString = "+xmlString); %> <html> <head> <title>Exception Summary Bar </title> <style type="text/css"> </style> <script LANGUAGE="Javascript" SRC="../JSClass/FusionCharts.js"></script> <script LANGUAGE="JavaScript"> function FC_Rendered(DOMId){ if (DOMId=="chart1Id"){ return; } } </script> </head> <body> <center> <div id="chart1div"> Unable to read the XML </div> <script language="JavaScript"> var xml = "<%=xmlString%>"; var chart1 = new FusionCharts("../FChart/MSColumn2D.swf", "chart1Id", "900", "300", "0", "1"); chart1.setDataXML("<%=xmlString%>"); chart1.render("chart1div"); </script> <br> </center> </body> </html> ] Thanks in advance. Can any one please help me out.......