Shokz Report post Posted March 25, 2011 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"); myChart.setDataXML(xml); myChart.render("divchart"); Have any error? Thanks. Share this post Link to post Share on other sites
Guest Angie Report post Posted March 28, 2011 Hi, Welcome to FusionCharts Forum! Please find the modified code attached for your reference. Hope this helps. xml.html Share this post Link to post Share on other sites