title: Unable to set width and height on canvas in chart js
body: <p>I am unable to set width and height on the canvas, it is taking full height and width available on the body.</p>
  
  <p>Could you please help here?
  I need to scroll down to see the chart.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;!doctype html&gt;
  &lt;html&gt;
    &lt;head&gt;
      &lt;script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.4.0/Chart.min.js"&gt;&lt;/script&gt;
      &lt;style&gt;
     
   &lt;/style&gt;
    &lt;/head&gt;
    &lt;body&gt;
      &lt;canvas id="myChart" width="400" height="400"&gt;&lt;/canvas&gt;
    &lt;/body&gt;
    &lt;script&gt;
    var ctx = document.getElementById('myChart').getContext('2d');
    data = {
      datasets: [{
          data: [10, 20, 30,50],
    backgroundColor: ['#ff6384','#36a2eb','#cc65fe', '#ffce56'],
    borderWidth: ['1','1','1', '1'] 
      }],
  
      labels: ['Red','Yellow','Blue','Green']
   
  };
  var myDoughnutChart = new Chart(ctx, {
      type: 'doughnut',
      data: data,
   options: {
      legend: {
          display: false,
     responsive: false
        }
      
      }
  });
    &lt;/script&gt;
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>