Light Intensity monitoring system project

For my first project :light Intensity monitoring system
When I click on view device icon there is one notification shows to me ,which says that “plotchart is not defined.” What does it means ? How I solve this situation?

When you were creating a product there are two tabs first is hardware and second is code. You should click on code, give suitable name to code and .js as file type and write down the below code:
plotChart(“time_stamp”, “your_variable_name”);
hope you get it.

As you are saying I do same thing.
Is this problem occurred due to write “plotchart” instead of “plotChart”?

Yes. The correct format is plotChart(“time_stamp”,“variable_name”);
here variable_name refers to the pin number to which you have connected the LDR

You always have to follow the correct syntax while programming , as the machine only knows “plotChart”
not the plotchart or Plotchart.

1 Like

definitely,because JS is a case sensitive language

Correct syntax should be followed while programming , as the machine only knows “plotChart”
not the plotchart or Plotchart. Because it is case-sensitive.

Hello 1234567890!

Try to check the case sensitivity of the code function .You have written “plotchart” instead of “plotChart” this is the error.if the error remains same then firstly you can check for the variable name given to A0. Also check the syntax of your code.