Problem with chars in XML string
FusionCharts Forum
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        



Problem with chars in XML string Expand / Collapse
Author
Message
Posted 5/5/2008 2:40:10 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 5/5/2008 2:35:07 PM
Posts: 1, Visits: 1
I am using the below code to try to build my chart.

string xmlString = gridRow.Cells[3].Text.ToString();

return FusionCharts.RenderChart("/FusionCharts/Bar2D.swf", "", xmlString, "chart1", "600", "300", false, false);

When I do this, I get "No data to display". When I look at the source code, it looks like the < and > chars have been replaced  and looks something like this

 /&gt;&lt;/dataset&gt;&lt;/chart&gt; 

Is there a way around this?

Post #6098
Posted 5/6/2008 4:37:20 AM
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Moderators
Last Login: Today @ 1:31:05 AM
Posts: 677, Visits: 1,081
Hi,

Could you please try using Server.HtmlDecode(xmlString) ?

Please also check whether proper chart XML is being passed. If its only <dataset> no chart is going to rendered.


Regards,

Sudipto Choudhury
FusionCharts Team

Post #6104
« Prev Topic | Next Topic »


Permissions Expand / Collapse

All times are GMT -7:00, Time now is 6:30am


Execution: 0.047.