I'm a newbie with FusionCharts (which I love) and XML.
I'm developing a dashboard with just access to XML files (ie. no access to server side programming - the site is being put on an Internal Sharepoint Site which I am using as a basic webserver)
I thought I would be able to repeat the same graph showing different data by accessing different data xml files by using XSLT repeat region. The DataXML method just doesn't seem to work with XSLT , the DataURL method works but only renders the last referenced data file in the first chart (see simple example below).
I think that this is because the div tag is specifically referenced - rather than a different div tag id for each region.
Is there anyway to repeat same graphs using XSLT and/or renaming the div tag with code (I tried having a name for the div tag in the XML file but it didn't like the reference)
Any ideas gratefully received
Cheers Dev
Simple Example:
XML FILE
<ProductFamily>
<Products>
<Product>
<datafile>Data.xml</datafile>
</Product>
<Product>
<datafile>Data2.xml</datafile>
</Product>
</Products>
</ProductFamily>
XSL Code :
<xsl:for-each select="ProductFamily/Products/Product">
<div id="MyChart" align="center">The chart will appear within this DIV. This text will be replaced by the chart.</div>
<script type="text/javascript">
var myChart = new FusionCharts("Column3D.swf", "myChartId", "900", "300", "0", "0");
myChart.setDataURL("<xsl:value-of select="datafile"/>");
myChart.render("MyChart");
</script>
</xsl:for-each>