Not able to plot the line graph after after writing the code


i have used the following code .But i cant visualize the graph what is the problem?


Read the docs

try deploying the configuration several times before viewing the data if you have already deployed it sufficient times then change the filter column where you view your graph to day or weekly or month


There is syntax error. Once you check by replacing with this. Also once check that you have used the same light as variable name.

There is Error in 3rd line of your code,so rectified that first with setChartType(‘lineGraph’);
Also check remaining lines in your code.
It is very important to write lettering type(small&capital letters) in code.
-------If your device in turn off then,go to webpage,in that page click on the live button in that select month or week option,then iam hoping your graph will definately vizualized.