Sign in to follow this  
laurent25

Problem With Json Data

Recommended Posts

Hello,

 

I'm using RoR and when i try to pass data to my chart using a url i got this error:

 

INFO: XML Data provided using dataXML method.

ERROR: Invalid XML encountered. A start-tag is not matched with an end-tag. Click the above "dataURL Invoked" link to see the XML in browser Or check the XML data provided.

 

But if I open the url in my browser, copy past its content to a var in my action then pass it as data to my chart it works...

 

Any idea why?

data.txt

Share this post


Link to post
Share on other sites

Hi,

 

Could you please confirm if you are using "setXMLData" or "setXMLUrl" method to pass the JSON data? If yes, please try using "setJSONData"/ "setJSONUrl" method instead, to render the chart.

 

In case if this does not resolve, please send us the sample HTML code that you are using.

 

Looking forward to your reply.

Share this post


Link to post
Share on other sites

Hi,

 

Could you please confirm if you are using "setXMLData" or "setXMLUrl" method to pass the JSON data? If yes, please try using "setJSONData"/ "setJSONUrl" method instead, to render the chart.

 

In case if this does not resolve, please send us the sample HTML code that you are using.

 

Looking forward to your reply.

 

I'm not using any method to pass my JSON atm.

 

I use ETX JS so I have a compoment like this:

{

xtype: 'fusionpanel',

fusionCfg: {

swfUrl: 'images/charts/Line.swf',

width: "600",

height: "300",

registerWithJS: true,

},

data: @customers_data

}

Where @customers_data is my var where my json is stored.

Those methods you mentioned, are there JS function from FusionCharts JS?

 

Should I have something like data: setJSONUrl(my_url) ?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this