Sign in to follow this  
boarderx

Reoccuring "Undefined" Error

Recommended Posts

Upon rendering, my charts consistently show the text "undefined". When the button that is used to render the chart is clicked a second time, the chart will appear. I can't figure out why this is happening.

 

 

 

I'm working in a .aspx page, but using javascript to pull the chart data and render it. I read a post from someone with a similar problem that hinted that the full javascript file may not be loaded before the chart is rendered. I don't think that's possible in my case because the js is loaded on page load and the chart is only rendered when the user clicks a button.

 

 

 

 

 

 

 

My aspx page has this script definition:

 

< script type="text/javascript" src="/FusionCharts/FusionCharts.js"> script >

 

 

 

This is the javascript:

 

getPopupChartData(location, 'LEVEL', function(xml) {

 

var chartLevel = new FusionCharts("/FusionCharts/Charts/Pie3D.swf", "SS1", chartWidth, chartHeight, "0", "0");

 

chartLevel.setDataXML(escape(xml));

 

chartLevel.render("LevelsChart");

 

});

 

 

 

For some reason the xml won't post correctly, so I attached a file.

data.xml

Edited by Guest

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
Sign in to follow this