Charts.js graph not scaling to canvas size
<p>I'm trying to make a graph with Charts.js (current one is just a really simple example I'm trying to get working, somewhat taken from the Chart.js documentation) and the graph isn't scaling to the size of the canvas I'm giving it. Here is all the relevant code. </p>

<p>To import it:</p>

<pre><code>&lt;script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.1.6/Chart.bundle.min.js"&gt;&lt;/script&gt;
</code></pre>

<p>Then, I connect it to a javascript file as follows: </p>

<pre><code>&lt;script type="text/javascript" src="js/stats_tab.js"&gt;&lt;/script&gt;
</code></pre>

<p>I have my canvas set up: </p>

<pre><code>        &lt;div id="graph_2015" class ="stats_box"&gt;
            &lt;h4&gt;Graph 2015&lt;/h4&gt;
            Text
            &lt;canvas id="myChart" width="200" height="200"&gt;&lt;/canvas&gt;
        &lt;/div&gt;
</code></pre>

<p>And then finally in stats_tab.js, I have the following code:</p>

<pre><code>window.onload=function(){
    var ctx = document.getElementById("myChart").getContext("2d");
    var myChart = new Chart(ctx, {
        type: 'line',
        data: {
            labels: [1,2,3,4,5,6,7,8,9,10],
            datasets: [
                {
                    label: "My First dataset",
                    data: [1,2,3,2,1,2,3,4,5,4]
                }
            ]
        },
        options: {
        }
    });
}
</code></pre>

<p>The graph displays nicely, but it refuses to scale to the size of the canvas I gave it. There is also no css relevant to any of the divs involved. The inspect feature on chrome lets me know that the final graph is 676 by 676 instead of the 200 by 200 I specified. Not really sure what's going on.</p>

<p>Thanks!</p>