Sign in to follow this  
MrFast

FusionChart Javascript Library

Recommended Posts

My XML uses double instead of single quotes for the metadata. For example - I use

 

 

 

<chart caption="Monthly Chocolate Usage" bgColor="c7c7c7" xAxisName="Month" yAxisName="Chocolate Usage" numberSuffix=" KWh" showValues="0" useRoundEdges="1">

 

 

 

instead of

 

 

 

<chart caption='Monthly Chocolate Usage' bgColor='c7c7c7' xAxisName='Month' yAxisName='Chocolate Usage' numberSuffix=' KWh' showValues='0' useRoundEdges='1'>

 

 

 

When I embed a link to the double-quoted XML from HTML, the chart loads just fine. But when I try to load this exact same XML via FusionChart.js ajax style in javascript, it breaks the chart.

 

 

 

Any clue why this is?

Edited by Guest

Share this post


Link to post
Share on other sites

Hi jmanico and Pallav,

Just replace all double quotes with backslash-double quote.

I believe this would work from JavaScript and not break the string for the dataXML function:

<chart caption="Monthly Chocolate Usage" bgColor="c7c7c7" xAxisName="Month" yAxisName="Chocolate Usage" numberSuffix=" KWh" showValues="0" useRoundEdges="1">

 

Regards,

/Hans

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