Graph Animation

In Home Automation module, project 5 there is a task given to animate the linegraph. I was unable to find the answer/code. Anyone please help me or just tell me where to find if it is in bolt cloud docs.

1 Like

@shivammirje1998:
Please check the following link for the setAnimation function

check the code twice ,maybe any semicolon is missing also notice that some alphabets are case sensitive

*Write down the following code to implement the same:

setChartLibrary('google-chart');
setChartTitle('Line_Graph');
setChartType('lineGraph');
setAxisName('time','light');
setAnimation(true);
setCrosshair(true);
plotChart('time_stamp','light');  /*light is the variable name*/

Since it is a line graph that is why you won’t be able to see the effect of ‘animation’ clearly. To see the effect use a bar graph or any other graph for the same.