I am in the module of google charts and graph.
I changed the code as per the instructions but I can’t see the graph.
Here is the screenshot of it.
and the code
and one more doubt in the module of project 1 in the video in the plotchart function " " was used,but in this section in the code they used ’ ’ . so, can you please tell me which one is correct?
Make sure you mentioned the same variable name you gave for A0
Also both ’ ’ and " " doesnt matter in js.Both are correct.
@richal.pandey45 Can you please open the Chrome console by pressing CTRL + SHIFT + J and send us the screenshot of it?
Also, share the code that you have written for the graph.
There is a small typo error in the code . It will be
Check this link https://docs.boltiot.com/docs/line-graph
Both single quotes (
'' )and double quotes (
" " )is correct. It will work with both.
Do let me know in case you need any other information.
" " and
- There is no difference between (" ") and (’ '), you can use any one of them.
use directly A0 (if u reading analog value ). giving variable as light was also not working for me ,but once i changed it to A0 i got my output.
@richal.pandey45 there seems no fault in your code…but there are some posibilities why your graph is not showing they are…
make sure that your variable name is same…,make sure you have saved your code properly…
Thus, overall code becomes,
Secondly, there is no difference between (" ") and (’ ') and can use any one of them.
Feel free to ping me any time for queries if you have any.