FusionCharts Forum: Does not Like my Data - FusionCharts Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Does not Like my Data Invalid XML Data

#1 User is offline   UK_Lad 

  • Forum Newbie
  • Group: Members
  • Posts: 4
  • Joined: 16-October 09

Posted 16 October 2009 - 03:51 AM

Very Newbee here.

I have loaded the sample data and have got that 3D Bar chart to work.  Very nice. 

Created my own data and xml file, changed data source in html page and I get error message "invalid xml data"

Please can you tell me what is wrong with this XML data.

<Chart caption='Monthly Sales Summary' subcaption='For the year 2007' xAisName='Month' yAxisName='Sales'>
  <set label ='January' value='13069' />
  <set label ='July' value='907' />
  <set label ='October' value='5' />
  <set label ='September' value='12' />
 </chart>

Thanks in advance.

London Lad

0

Other Replies To This Topic

#2 User is offline   Rajroop 

  • FusionCharts Team
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1803
  • Joined: 19-May 09

Posted 16 October 2009 - 04:08 AM

Hello,



You would need to process the XML with the syntax which is accepted by FusionCharts.

Ref.- http://www.fusioncharts.com/docs/ >



In your example, you have passed the XML with <Chart ... > element whereas it should be <chart ... >.



On correcting this, you will not face any more XML error. :)



Happy FusionCharting.
Regards,

Rajroop Bhaduri

FusionCharts Team

Help us improve our documentation with your precious feedback at:
http://documentation...sioncharts.com/

Follow us @Twitter
0

Other Replies To This Topic

#3 User is offline   Rajroop 

  • FusionCharts Team
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1803
  • Joined: 19-May 09

Posted 16 October 2009 - 04:10 AM

Oh, and welcome to the FusionCharts Forum, London Lad! :)
Regards,

Rajroop Bhaduri

FusionCharts Team

Help us improve our documentation with your precious feedback at:
http://documentation...sioncharts.com/

Follow us @Twitter
0

Other Replies To This Topic

#4 User is offline   UK_Lad 

  • Forum Newbie
  • Group: Members
  • Posts: 4
  • Joined: 16-October 09

Posted 16 October 2009 - 05:09 AM

Thank you for the welcome.

The html page is the sample from the tutorial, I am only chaging the xml file name in two places.

I have corrected the data as advised, still no joy.

<chart caption='Monthly Sales Summary' subcaption='For the year 2007' xAisName='Month' yAxisName='Sales'>
  <set label ='January' value='13069' />
  <set label ='July' value='907' />
  <set label ='October' value='5' />
  <set label ='September' value='12' />
 </chart>

0

Other Replies To This Topic

#5 User is offline   Rajroop 

  • FusionCharts Team
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1803
  • Joined: 19-May 09

Posted 16 October 2009 - 05:58 AM

Hi,



Could you please specify whether you are using the dataXML or the dataURL method to pass the XML to the chart?



In case you are using dataXML, could you please send us your HTML, as an attachment, so we may have a look?



Looking forward to your reply. :)
Regards,

Rajroop Bhaduri

FusionCharts Team

Help us improve our documentation with your precious feedback at:
http://documentation...sioncharts.com/

Follow us @Twitter
0

Other Replies To This Topic

#6 User is offline   Rajroop 

  • FusionCharts Team
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1803
  • Joined: 19-May 09

Posted 16 October 2009 - 06:06 AM

Hi again,



To add to this, could make sure that you are not providing any line breaks when you are passing the XML i.e. the XML should be continuous in format without any line breaks.





<html>

<head>

<script language=" .......... " src=" ................... ">

</head>



<body bgcolor=".........">



<div id="chartdiv" ........


<script type=" ............ ">

var myChart = new FusionCharts(" ............ ");

myChart.setDataXML("<chart caption='Monthly Sales Summary' subcaption='For the year 2006' xAxisName='Month' yAxisName='Sales' numberPrefix='$'><set label='January' value='17400' /><set label='February' value='19800' /><set label='March' value='21800' /><set label='April' value='23800' /><set label='May' value='29600' /><set label='June' value='27600' /><set label='July' value='31800' /><set label='August' value='39700' /><set label='September' value='37800' /><set label='October' value='21900' /><set label='November' value='32900' /><set label='December' value='39800' /></chart>");



myChart.render(" ............ ");

</script>



</body>

</html>



NOTE: This is only when using dataXML method.



I hope this helps.
Regards,

Rajroop Bhaduri

FusionCharts Team

Help us improve our documentation with your precious feedback at:
http://documentation...sioncharts.com/

Follow us @Twitter
0

Other Replies To This Topic

#7 User is offline   UK_Lad 

  • Forum Newbie
  • Group: Members
  • Posts: 4
  • Joined: 16-October 09

Posted 16 October 2009 - 07:26 AM

Thanks for your help.

Files attached.

London Lad.

Attached File(s)


0

Other Replies To This Topic

#8 User is offline   Rajroop 

  • FusionCharts Team
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1803
  • Joined: 19-May 09

Posted 16 October 2009 - 07:59 AM

Hello,



We went through the file that you provided in your last post.



Please make sure of the following:



1. In the folder provided, add the FCF_Column3D.swf and the fusioncharts.js files.



2. Please change the paths accordingly, in the HTML file.

For example:

<param name="movie" value="FCF_Column3D.swf" />

and

<embed src="FCF_Column3D.swf" .......... />



3. Change the element to element, since you are using FusionCharts Free. You only use the for higher versions.

Ref.- http://www.fusioncha...ngleSeries.html



4. Place the folder in the root folder of your system.



By following the above instructions, you'll be able to render your chart easily.



I hope this helps.
Regards,

Rajroop Bhaduri

FusionCharts Team

Help us improve our documentation with your precious feedback at:
http://documentation...sioncharts.com/

Follow us @Twitter
0

Other Replies To This Topic

#9 User is offline   UK_Lad 

  • Forum Newbie
  • Group: Members
  • Posts: 4
  • Joined: 16-October 09

Posted 16 October 2009 - 12:04 PM

Hi Rajroop,

I appreciate the help you are giving me here but I am very new to this and I'm not appreciating the directions you are giving me at the moment.

The only change I have made to the html file is to change the xml file.  Why do I need to make these other changes because of that?  Both xml files are in the same folder.

1. In the folder provided, add the FCF_Column3D.swf and the fusioncharts.js files.

What Folder provided? 

2. Please change the paths accordingly, in the HTML file.
For example:
<param name="movie" value="FCF_Column3D.swf" />
and
<embed src="FCF_Column3D.swf" .......... />

If I change the paths then I will not be able to view the original data and graph, or will I?

3. Change the element to element, since you are using FusionCharts Free. You only use the for higher versions.
Ref.- http://www.fusioncharts.com/free/docs/Contents/SingleSeries.html

I dont understand, Change the element to element, please can you tell me what this means.

4. Place the folder in the root folder of your system. 

Place what folder in what root folder?

As I said I am a very NewBee.

Thanks

London Lad

0

Other Replies To This Topic

#10 User is offline   Rajroop 

  • FusionCharts Team
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1803
  • Joined: 19-May 09

Posted 19 October 2009 - 08:41 AM

Hi London Lad,



Please accept my humblest apologies for the inconvenience caused.



Could you please check the folder attached to this post?



Here, since you are using FusionCharts Free, you would need to use the element in place of the element.



I hope this helps. :)

Attached File(s)


Regards,

Rajroop Bhaduri

FusionCharts Team

Help us improve our documentation with your precious feedback at:
http://documentation...sioncharts.com/

Follow us @Twitter
0

Other Replies To This Topic

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic