why chart is not show.
FusionCharts Forum
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        



why chart is not show. Expand / Collapse
Author
Message
Posted 2/3/2008 6:28:38 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 2/3/2008 11:12:40 AM
Posts: 2, Visits: 6
 <?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'

Post #4338
Posted 2/4/2008 1:34:26 AM
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Forum Members
Last Login: Yesterday @ 11:57:38 PM
Posts: 173, Visits: 1,003

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 =”<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>”;

 

Thanks,
Arindam

FusionCharts Team
www.fusioncharts.com

Post #4344
« Prev Topic | Next Topic »


Permissions Expand / Collapse

All times are GMT -7:00, Time now is 10:55am


Execution: 0.063.