bert.dillien

Members
  • Content count

    2
  • Joined

  • Last visited

About bert.dillien

  • Rank
    Forum Newbie
  1. Invalid XML data

    Hi, Thanks for the reply, but I found out it was due to difference in swf versions. I was working with a 2.3 and reading the 3.3 documentation. Once I found the correct charts (puchased v3.0 some years ago...yeah, badly classified) it worked like a charm! Also, in the example above, I needed to change all xmlData contents to replace all double quotes by single ones in javascript. So this line : oChart.setDataXML(document.getElementById('xmlData').innerHTML); becomes : oChart.setDataXML(document.getElementById('xmlData').innerHTML.replace(/"/g,'''); and it works fine. It seems that the setDataXML methode cannot parse a double quote. Also in IE8, the XML put in the xmlData div gets parsed somehow by IE, making all single quote's into double ones... very strange behaviour. Cheers.
  2. Invalid XML data

    Hi all, I'm a bit stuck trying to create a simple 3D Pie chart. I've tried a number of different ways to create my data xml, but it is returning an invalid error. Sample code: <script type="text/javascript" src="FusionCharts.js"></script> <div id=xmlData"> <chart caption="Hello Chart" palette="1"> <set label="A label" value="1" /> <set label="B label" value="2" /> <set label="C label" value="3" /> <set label="D label" value="4" /> </chart> </div> <div id="graph"> <script type="text/javascript"> oChart = new FusionCharts('Pie3D.swf','graph','300','200','1','1'); oChart.setDataXML(document.getElementById('xmlData').innerHTML); oChart.render('graph'); </script> </div> The XML is created via the XMLGenerator tool, and kept very simple to try it out first. The actual data is of the same structure, exception on the values which would contain decimal places. Is there something I am missing? Thanks!