While setting up the hardware configurations for my Bolt device which uses and LDR sensor for light detection, I named the variable as light_data. At first I tried using the line chart to visualize the data and it worked fine. Next I used the gauge chart with the code given below, but it is not working. The pointer is not showing in the diagram, the data points remains static at 3, and the value shows NaN. I cannot make out what is going wrong.
setChartLibrary("google-chart"); setChartType('gauge'); setAxisName('Voltage'); setDimentions(700,700); setMaxValue(1023); setRed(726,1023); setYellow(501,725); setGreen(250,500); setMinorTicks(5); plotChart('light_data'); dataDownload('true');