mbaith Report post Posted February 8, 2008 (edited) Hello, I am trying to use the HBullet.swf gadget with the following code, but I keep getting the error: Line: 570 Char: 410 Error: Expected ')' Code: 0 Here is the code in my ASP page: strXML5 = "" strXML5 = strXML5 & "<chart plotFillColor='666666' plotFillAlpha='60' showPlotBorder='1' plotBorderColor='333333' plotBorderThickness='1' showValue='1' minorTMNumber='5' lowerLimit='0' upperLimit='120' canvasLeftMargin='20' canvasRightMargin='40' clickURL='https://apps.barksdale.com/extranet/Dashboard/Gallery/SalesSummaryMonth_YTD.html' numberSuffix='%' showBorder='0'>" strXML5 = strXML5 & "<colorRange>" strXML5 = strXML5 & "<color minValue=""0"" maxValue=""60"" code='FF654F'/>" strXML5 = strXML5 & "<color minValue=""60"" maxValue=""90"" code='F6BD0F'/>" strXML5 = strXML5 & "<color minValue=""90"" maxValue=""120"" code='8BBA00'/>" strXML5 = strXML5 & "</colorRange>" strXML5 = strXML5 & "<value>90</value>" strXML5 = strXML5 & "</chart>" Call renderChart("Gadgets/HBullet.swf", "", strXML5, "myNext5", 400, 60, false, true) Here is the code that it generates: <!-- START Script Block for Chart myNext5 --> <div id='myNext5Div' align='center'> Chart. </div> <script type="text/javascript"> //Instantiate the Chart var chart_myNext5 = new FusionCharts("Gadgets/HBullet.swf", "myNext5", "400", "60", "0", "1"); //Provide entire XML data using dataXML method chart_myNext5.setDataXML("<chart plotFillColor='666666' plotFillAlpha='60' showPlotBorder='1' plotBorderColor='333333' plotBorderThickness='1' showValue='1' minorTMNumber='5' lowerLimit='0' upperLimit='120' canvasLeftMargin='20' canvasRightMargin='40' numberSuffix='%' showBorder='0'><colorRange><color minValue="0" maxValue="60" code='FF654F'/><color minValue="60" maxValue="90" code='F6BD0F'/><color minValue="90" maxValue="120" code='8BBA00'/></colorRange><value>90</value></chart>"); //Finally, render the chart. chart_myNext5.render("myNext5Div"); </script> <!-- END Script Block for Chart myNext5 --> Line 570 is this line from above: var chart_myNext5 = new FusionCharts("Gadgets/HBullet.swf", "myNext5", "400", "60", "0", "1"); Please help! Thanks, Mike Edited February 8, 2008 by Guest Share this post Link to post Share on other sites
mbaith Report post Posted February 8, 2008 I found the problem. The double quotes in the XML data needed to be replaced with single quotes and the % needed to be %25. Mike Share this post Link to post Share on other sites