ChartKick.js: Error Loading Chart: t.canvas is undefined <p>I'm using chartkick.js to integrate a multi line graph into my site (it's a rails app, but I'm using the chartkick.js file rather than the chartkick gem, if that makes any difference). On the page load, I populate the "data" array with the default values of input fields so that this:</p> <pre><code>data = [ {"name": "With interest", "data": {} }, {"name": "No Interest", "data": {} }]; </code></pre> <p>Becomes something like this:</p> <pre><code>data = [ {"name": "With interest", "data": {1: "100", 2: "200", 3: "400"} }, {"name": "No Interest", "data": {1: "100", 2: "200", 3: "400"} }]; </code></pre> <p>And thus, renders the the chart with all the values on the page.</p> <p>I also have a click listener block which listens for "calculate" on a click event that takes in changed values for all of those input fields. At the end of the click listener block</p> <p>At the very end of my document I declare chartkick like so:</p> <pre><code>new Chartkick.LineChart("savings-chart", data); </code></pre>