@hemel619619,
You need to include jQuery in your page to use jQuery methods like getJSON, when and done. Including jQuery should work fine in your case.
Please try adding <script src="https://canvasjs.com/assets/script/jquery-1.11.1.min.js"></script>
in your html page.
—
Vishwas R
Team CanvasJS