|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: 11/19/2007 9:46:08 AM
Posts: 3,
Visits: 8
|
|
| 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='€' showValues='0' decimals='0' ><categories><category name='42' /><category name='43' /><category name='44' /></categories><dataset seriesName='Norm' ><set value='57000' /><set value='57000' /><set value='57000' /></dataset><dataset seriesName='Bruto'><set value='57000' /><set value='25091' /><set value='25091' /></dataset></chart> execute= echo renderChart("MSCombi2D.swf","",$strXML, "productSales", 600, 300, true, false);
|
|
|
|
|
Supreme Being
      
Group: Moderators
Last Login: 2 days ago @ 5:36:20 AM
Posts: 736,
Visits: 1,181
|
|
| Hi, I dataXML special characters like € are to be URL encoded .... instead of this use : numberPrefix='%E2%82%AC' this migh help.
Regards,
Sudipto Choudhury FusionCharts Team
|
|
|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: 11/19/2007 9:46:08 AM
Posts: 3,
Visits: 8
|
|
| Hi, Changing the € to x (no encoding needed) doesn't make things working. thkz anyway Harry
|
|
|
|
|
Supreme Being
      
Group: Moderators
Last Login: 2 days ago @ 5:36:20 AM
Posts: 736,
Visits: 1,181
|
|
| 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> <?php include("FusionCharts.php"); $strXML="<chart palette='4' caption='Bruto inkomen' subcaption='overlijden relatie' xAxisName='jaar' yAxisName='bruto inkomen' numberPrefix='€' showValues='0' decimals='0' ><categories><category name='42' /><category name='43' /><category name='44' /></categories><dataset seriesName='Norm' ><set value='57000' /><set value='57000' /><set value='57000' /></dataset><dataset seriesName='Bruto'><set value='57000' /><set value='25091' /><set value='25091' /></dataset></chart>"; echo renderChart("MSCombi2D.swf","",$strXML, "productSales", 600, 300, false, false); ?> </body> </HTML> can you please send your code so that we can debug?
Regards,
Sudipto Choudhury FusionCharts Team
|
|
|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: 11/19/2007 9:46:08 AM
Posts: 3,
Visits: 8
|
|
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>
<? //echo $strXML; // in de produktieversie? echo renderChart("MSCombi2D.swf","",$strXML, "productSales", 600, 300, true, false);
|
|
|
|
|
Supreme Being
      
Group: Moderators
Last Login: 2 days ago @ 5:36:20 AM
Posts: 736,
Visits: 1,181
|
|
| HI, Can you please try replacing the < with < and > with > as normal XML would be...that will do the trick..
Regards,
Sudipto Choudhury FusionCharts Team
|
|
|
|