Gauge Graph problem

I had typed the gauge Graph exactly as shown in the gauge Graph tutorial but I am getting an error that their is a plotChart function problem and the variable i.e. light_data is undefined. And also no output on the graph is visible.

Hi @supratimshom1998,

Please share your code so that we can resolve the issue.

setChartLibrary(“google-chart”);
setChartTitle(‘Gauge_Chart’);
setChartType(‘gauge’);
setAxisName(‘light_data’);
setDimensions(400,400);
setMaxValue(1023);
setGreen(250,500);
setYellow(501,725);
setRed(726,1023);
plotChart(‘light_data’)

I had typed exactly as the instructions were provided.
I am providing a screenshot of the gauge graph.

hii
u have missed a semicolon in plot Chart function at last. make sure u write correct code.

here the meter takes only single variable name or single word
so use plotChart(‘light’) instead of plotChart(‘light_data’)
and keep semicolon in the last line of code

it worked for me…