hasie Report post Posted November 19, 2007 I'm in pre-purchasing fase, trying to get things working. While dataURL works fine, strXML doesn't. I specific want to use the strXML-method, just because I don't want every graph to be build by a fysically file on my server. When using strXML and renderchart I get: debug error: Could not find dataxml or dataurl any comments on this code? $strXML= <chart palette='4' caption='Bruto inkomen' subcaption='overlijden relatie' xAxisName='jaar' yAxisName='bruto inkomen' numberPrefix=' Share this post Link to post Share on other sites
FusionCharts Support Report post Posted November 19, 2007 Hi, I dataXML special characters like Share this post Link to post Share on other sites
hasie Report post Posted November 19, 2007 Hi, Changing the Share this post Link to post Share on other sites
FusionCharts Support Report post Posted November 19, 2007 Hi, I have tried your code in a php file and its working properly... <HTML><HEAD><script type="text/javascript" language="javascript" src="FusionCharts.js"></script></HEAD><body><?phpinclude("FusionCharts.php"); $strXML="<chart palette='4' caption='Bruto inkomen' subcaption='overlijden relatie' xAxisName='jaar' yAxisName='bruto inkomen' numberPrefix=' Share this post Link to post Share on other sites
hasie Report post Posted November 19, 2007 this is the complete code: <?php //You need to include the following JS file, if you intend to embed the chart using JavaScript. //Embedding using JavaScripts avoids the "Click to Activate..." issue in Internet Explorer //When you make your own charts, make sure that the path to this JS file is correct. Else, you would get JavaScript errors. session_start(); include("../Fusions/Code/PHP/Includes/FusionCharts.php"); ?> <SCRIPT LANGUAGE="Javascript" SRC="../Fusions/JSClass/FusionCharts.js"></SCRIPT> <? $strXML = "<chart palette='4' caption='Bruto inkomen' subcaption='overlijden relatie' xAxisName='jaar' yAxisName='bruto inkomen' numberPrefix='x' showValues='0' decimals='0' >"; $strCategories = "<categories>"; for ($x = 0; $x < $_SESSION['eindgrafiek']; $x++) { $strCategories.= "<category name='" . $_SESSION['jaar']['klp_lft'][$x] . "' />"; } $strCategories .= "</categories>"; //renderAs='Area' $strDataset1 = "<dataset seriesName='Norm' >"; for ($x = 0; $x < $_SESSION['eindgrafiek']; $x++) { $strDataset1.= "<set value='" . $_SESSION['jaar']['norm'][$x] . "' />"; } $strDataset1 .= "</dataset>"; $strDataset2 = "<dataset seriesName='Bruto'>"; for ($x = 0; $x < $_SESSION['eindgrafiek']; $x++) { $strDataset2.= "<set value='" . $_SESSION['jaar']['jaarx'][$x] . "' />"; } $strDataset2 .= "</dataset>"; $strXML .= $strCategories . $strDataset1 . $strDataset2 . "</chart>"; ?><br><br><br> [b][i] [/b][/i];[b][i] [/b][/i];[b][i] [/b][/i];[b][i] [/b][/i];[b][i] [/b][/i];[b][i] [/b][/i]; <? //echo $strXML; // in de produktieversie? echo renderChart("MSCombi2D.swf","",$strXML, "productSales", 600, 300, true, false); Share this post Link to post Share on other sites
FusionCharts Support Report post Posted November 24, 2007 HI, Can you please try replacing the < with < and > with > as normal XML would be...that will do the trick.. Share this post Link to post Share on other sites