Sign in to follow this  
Guest Rajroop

invalid xml data in AngularGauge- chart

Recommended Posts

Hi

I am Getting the "invalid xml data" error when using AngularGauge- chart

I am not getting this error when I am using a xml-file instead. The code is simple but I can't see what causes the erreor. Anyone? 

protected string ShowMyTurn(){

string inputXml =

"<?xml version='1.0' encoding='utf-8'?><chart palette='2' bgAlpha='0' bgColor='FFFFFF' lowerLimit='0' upperLimit='100' showBorder='0' basefontColor='FFFFDD' toolTipBgColor='009999' gaugeFillMix='{dark-10},{light-70},{dark-10}' gaugeFillRatio='3' pivotRadius='3' gaugeInnerRadius='50%' tickValueDistance='20'><colorRange><color minValue='0' maxValue='33' code='FF654F' /><color minValue='33' maxValue='66' code='F6BD0F' /><color minValue='66' maxValue='100' code='8BBA00' /></colorRange><dials><dial value='50' rearExtension='10' baseWidth='10' /></dials></chart>";

return FusionCharts.RenderChart("FusionCharts/AngularGauge.swf", "", inputXml, "FactorySum", "400", "300", false, false);

}

Share this post


Link to post
Share on other sites
Guest Rajroop

Hello Henate,

 

 

 

Welcome to the FusionCharts Forum. :)

 

 

 

You need to encode the special characters in your XML for this.

 

 

 

For example:

 

 

 

You have: <.....gaugeInnerRadius='50%'....>

 

 

 

What you should have: <.....gaugeInnerRadius='50%25'....>

 

 

 

I hope this helps. :)

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this