Hello siddhart you code is wrong so this error is popping up
You should check your code one again
Please share screenshot of your code so I can help
Declare a labirary.
After that write a code for what kind of chart you need.
We have fixed the issue. Can you please check if you are still getting the error?