@rr93,
Based on the code sample shared by you, it seems like you are trying to create the chart in JavaScript way and using the jQuery plugin to get a reference to the chart object. Instead, you can create the chart in jQuery way using $("#chartContainer").CanvasJSChart(options);
then get a reference to the chart object using $("#chartContainer").CanvasJSChart();
. Please take a look at this documentation page for more information on creating chart using the jQuery plugin.

___________
Indranil Deo
Team CanvasJS