Sign in to follow this  

Xml Js

Recommended Posts

Hi ...


I need help to create XML with Javascript variable.


My Code:



var xml = '<chart caption="Mortalidade Infantil" subcaption="Ultimos 10 anos" xAxisName="Ano" yAxisName="Valor" yAxisMinValue="0" numberPrefix="$" showValues="0" alternateHGridColor="FCB541" alternateHGridAlpha="20" divLineColor="FCB541" divLineAlpha="50" canvasBorderColor="666666" baseFontColor="666666" lineColor="FCB541"><set label="Dec" value="39800"/><styles><definition><style name="Anim1" type="animation" param="_xscale" start="0" duration="1"/><style name="Anim2" type="animation" param="_alpha" start="0" duration="0.6"/><style name="DataShadow" type="Shadow" alpha="40"/></definition><application><apply toObject="DIVLINES" styles="Anim1"/><apply toObject="HGRID" styles="Anim2"/><apply toObject="DATALABELS" styles="DataShadow,Anim2"/></application></styles></chart>',

myChart = new FusionCharts("../furniture/swfs/Line.swf", "myChart", "300", "330", "0", "0");





Have any error?



Share this post

Link to post
Share on other sites
Guest Angie



Welcome to FusionCharts Forum!smile.gif


Please find the modified code attached for your reference.


Hope this


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