Manoj Gahlot

  • Content count

  • Joined

  • Last visited

About Manoj Gahlot

  • Rank
    Forum Newbie
  1. 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>