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);