Problem with HBullet Chart
FusionCharts Forum
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        



Problem with HBullet Chart Expand / Collapse
Author
Message
Posted 2/8/2008 5:17:10 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 4/9/2008 3:50:58 PM
Posts: 6, Visits: 9
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

Post #4434
Posted 2/8/2008 5:50:38 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 4/9/2008 3:50:58 PM
Posts: 6, Visits: 9
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

Post #4435
« Prev Topic | Next Topic »


Permissions Expand / Collapse

All times are GMT -7:00, Time now is 8:26am


Execution: 0.141.