kwilde

renderChart won't take string XML

Recommended Posts

Hi,

 

I'm evaluating your product for our SaaS application and am having trouble charting data using the RenderChart method when supplying it string XML.  Here's my chart data (I've limited it to only 10 points for troubleshooting):

 

<Chart caption="Some Data" compactDataMode="1" dataSeparator="|">
   <categories>2370|2371|2372|2373|2374|2375|2376|2377|2378|2379|</categories>
   <dataset seriesName="val1" color="0000FF">43.3740484459|48.6808164612|49.8929561769|46.8008776242|39.9560172547|30.4944524665|20.1201742865|10.5009037788|3.50280219698|0.070240860059|</dataset>
</Chart>

 

Here's the line from my code:  Literal1.Text = FusionCharts.RenderChart("../FusionCharts/ZoomLine.swf", "", "XmlStr", "chart1", "1000", "400", False, True)

 

I'm using ASP.NET with VB as the code behind language.  The same XML data above works when I read it from a file to render the chart.  Any help would be appreciated.

 

Kurt

Share this post


Link to post
Share on other sites
Guest Sashibhusan

Hi Kurt,

 

Could you please provide the XmlStr as parameter (without enclosed in double quotes) to "RenderChart()" method, so that the "XmlStr" will get replaced with the XML string which holds it as value?

 

Ref. Code:

Literal1.Text = FusionCharts.RenderChart("../FusionCharts/ZoomLine.swf", "", XmlStr.ToString(), "chart1", "1000", "400", False, True)

Hope this helps!

Share this post


Link to post
Share on other sites

Opps, sorry about that.  In my troubleshooting I must have the quotes there.  Original line was:

 

Literal1.Text = FusionCharts.RenderChart("../FusionCharts/ZoomLine.swf", "", XmlStr, "chart1", "1000", "400", True, True)

 

which is the same as :

 

Literal1.Text = FusionCharts.RenderChart("../FusionCharts/ZoomLine.swf", "", XmlStr.ToString, "chart1", "1000", "400", True, True)

 

With this I don't get the "No data to display" message.  I actually get nothing; no graph at all.  Even with debug = true.

Share this post


Link to post
Share on other sites
Guest Sashibhusan

Hi,

 

Could you please confirm once, whether you are rendering JavaScript ZoomLine chart?

 

If yes, please confirm once, if the required JavaScript files (Like: FusionCharts.js, FusionCharts.HC.js, FusionCharts.HC.Charts.js and jquery.min.js) are present in your application folder and "FusionCharts.js" file is included in your aspx page.

 

Also, please check the browser console, if any error you are getting.

 

Awaiting your valuable response.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now