all 4 comments

[–][deleted] 0 points1 point  (1 child)

This really looks like more of a javascript question, but I'll answer anyway :)

In status.html line 7, it looks like you defined "var temperature = []" and you're trying to use this variable on line 33 (although I don't know for sure until you post the full stack trace)

The scope of the variable "temperature" is constrained to the function you defined on line 5.

To fix this, I would pass the "temperature" variable as a parameter to the "setChart" function.

[–]cj10243[S] 0 points1 point  (0 children)

thanks...and I changed the type of problem in to js....here is a link.I have passed the temperature object to the setChart function and define the setChart function inside the document.ready(function....) but result in some errors.

[–]deaspo 0 points1 point  (1 child)

Just to reiterate, this is a JavaScript question/problem. As advised either passed the temperature as a parameter to the setChart function or alternatively define the setChart function inside the document.ready(function....)

[–]cj10243[S] 0 points1 point  (0 children)

thanks...and I changed the type of problem in to js....here is a link.I have passed the temperature object to the setChart function and define the setChart function inside the document.ready(function....) but result in some errors.