Manoj Gahlot Report post Posted November 15, 2011 Since I am trying to generate Linear Gauge chart of Fusion Widget but I am generating XML as string in java script itself but it is not generating chart by setXMLData method. I am placing my code below so please check it & let me know if I did any mistake in it... <html> <head> <title>FusionGadgets Chart Gallery - Linear Gauge</title> <script language="JavaScript" src="../JSClass/FusionCharts.js"></script> </head> <body bgcolor="#ffffff"> <table width='98%' align='center' cellpadding='2' cellspacing='0'> <tr> <td align="center"> <div id="chartdiv" align="center">FusionGadgets</div> <script type="text/javascript"> var myChart = new FusionCharts("../Charts/HLinearGauge.swf", "myChartId", "450", "80", "0", "0"); var xmlData = "<chart bgColor='FFFFFF' bgAlpha='0' showBorder='0' upperLimit='5000' lowerLimit='0' gaugeRoundRadius='5' chartBottomMargin='10' ticksBelowGauge='0' showGaugeLabels='0' valueAbovePointer='0' pointerOnTop='1' pointerRadius='9'> \n\ <colorRange> \n\ <color minValue='0' maxValue='0' name='GOOD' /> \n\ <color minValue='0' maxValue='2500' name='WEAK' /> \n\ <color minValue='2500' maxValue='100' name='BAD' /> \n\ </colorRange> \n\ <value>2110</value> \n\ <styles> \n\ <definition> \n\ <style name='ValueFont' type='Font' bgColor='333333' size='10' color='FFFFFF'/> \n\ </definition> \n\ <application> \n\ <apply toObject='VALUE' styles='valueFont'/> \n\ </application> \n\ </styles> \n\ </chart>"; alert(xmlData); myChart.setXMLData(xmlData); myChart.render("chartdiv"); </script> </td> </tr> </table> </body> </html> Share this post Link to post Share on other sites
Guest Angshu Report post Posted November 15, 2011 Hi, Welcome to FusionCharts Forum! Please note that the current version of FusionWidgets(v 3.1.1) does not support setXMLData() method, this will be supported in our next release i.e FusionWidgets v 3.2. To provide XML data as a string, you would need to use setDataXML() method. More details at: http://www.fusioncha...ts/DataXML.html Hope this helps. Share this post Link to post Share on other sites