I have generated a xml from my database but the line is above the chart.
It does have the right x-axis names but not the y-axis values.
I'm using the $strDataURL to get the XML data.
This is the generated XML if I run data.php alone:
<graph caption="Share prijs" xAxisName="Datum" yAxisName="Prijs" showNames="1" decimalPrecision="2" yAxisMinValue="8" yAxisMaxValue="14" decimalSeparator=",">
//We've included ../Includes/FusionCharts.php, which contains functions
//to help us easily embed the charts.
include("FusionCharts.php");
?>
<HTML>
<HEAD>
<TITLE> FusionCharts Free - dataURL and Database Example</TITLE>
<SCRIPT LANGUAGE="Javascript" SRC="FusionCharts.js"></SCRIPT>
</HEAD>
<BODY>
<?php
//In this example, we show how to connect FusionCharts to a database
//using dataURL method. In our previous example, we've used dataXML method
//where the XML is generated in the same page as chart. Here, the XML data
//for the chart would be generated in PieData.php.
//tables.
//converts the data into proper XML form and finally
//relays XML data document to the chart
$strDataURL = "data.php";
echo renderChart("FCF_Line.swf", $strDataURL, "", "test", 650, 450);
?>
</BODY>
</HTML>

Back to top
MultiQuote
