Please check the plotChart() function in your product code Undefined variable name ligh

Hi @achyuthabhiram,

Can you share your code/screenshot again ? The previous image is blurry.

Hey can u send the Screenshot or Code again?

@ rahul sir , could you please let me know the reason behind this error?
It is telling like “Please check the plotChart() function in your product code Undefined variable name light1_data”.
Below picture having my code sir.
If you have answered to my Query then please ping on sagireddy111@gmail.com sir.
Thank you.

did you got the solution of this undefined variable coz i m facing the same problem…

@sagireddy111 in the hardware configurations of the product, you have provided the name of the A0 pin as light1 but while in the js code in the plotChart() you have used the variable name as light_data. Replace the light_data with the correct name as light1 so that the gauge chart can dispay the correct readings.

Replace the last line of the code with: plotChart(‘light1’). I hope this works :slight_smile: