Needle Not Showing In Gauge Chart~no previous solved my query

Needle Not Showing In Gauge Chart~no previous solved my query

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

Try this code. @sauravghag8

no sir still not resolved,I tried it but still not resolved

Hi @savvyitsols,

In gauge chart, you have to just pass a single variable name in plotChart function. For example; plotChart("ldr"). You are passing two variables inside the plotChart function that is incorrect.

Also, share the screenshot of your hardware configuration and updated code.

yes sir thank you needle appeared, on using only ldr