vsas Report post Posted February 3, 2008 <?php include("../Includes/FusionCharts.php"); include("../Includes/DBConn.php"); $strXML="<graph caption='Product Sales' subCaption='Sales in Dollars' xAxisName='Month' yAxisName='Sales' canvasBgColor='F6DFD9' canvasBaseColor='FE6E54' hovercapbgColor='FFECAA' hovercapborder='F47E00' divlinecolor='F47E00' yaxisminvalue='0' yaxismaxvalue='10000' numberPrefix='$' limitsDecimalPrecision='0' divLineDecimalPrecision='0'> <categories> <category name='Jan' hoverText='January'/> <category name='Feb' hoverText='February'/> <category name='Mar' hoverText='March'/> <category name='Apr' hoverText='April'/> <category name='May' hoverText='May'/> <category name='Jun' hoverText='June'/> </categories> <dataset seriesname='Product A' color='F0807F' showValue='1'> <set value='8343' /> <set value='6983' /> <set value='7658' /> <set value='8345' /> <set value='8195' /> <set value='7684'/> </dataset> <dataset seriesname='Product B' color='B22222' showValue='1'> <set value='2446' /> <set value='3935' /> <set value='3452' /> <set value='4424' /> <set value='4925' /> <set value='4328' /> </dataset> </graph>";?> <HTML> <HEAD> <TITLE> </TITLE> <SCRIPT LANGUAGE="Javascript" SRC="../../FusionCharts/FusionCharts.js"></SCRIPT> <meta http-equiv="Content-Type" content="text/html; charset=windows-874"></HEAD> <BODY> echo renderChart("../../FusionCharts/FCF_MSColumn3D.swf", "", $strXML, "ss", 650, 450, false, false);?></td> </BODY> </HTML> this is debug line from firefox Error: unterminated string literal Line: 26, Column: 22 Source Code: chart_ss.setDataXML("<graph caption='Product Sales' subCaption='Sales in Dollars' xAxisName='Month' yAxisName='Sales' Share this post Link to post Share on other sites
Arindam Report post Posted February 4, 2008 Hi, Your problem is arising due to line break with in XML string. Please do not give any line break in $strXML. Please follow that. $strXML = Share this post Link to post Share on other sites