A Pen by Chris Jamson

Thumbnail
This awesome code was written by ceejay76, you can see more from this user in the personal repository.
You can find the original code on Codepen.io
Copyright ceejay76 ©

Technologies

  • HTML
  • CSS
  • JavaScript
<!DOCTYPE html>
<html lang="en" >

<head>
  <meta charset="UTF-8">
  <title>A Pen by  Chris Jamson</title>
  
  
  
      <link rel="stylesheet" href="css/style.css">

  
</head>

<body>

  
<div class="wrapper">
  <canvas id="myChart" width="400" height="400"></canvas>
</div>
  <script src='https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.7.1/Chart.js'></script>

  

    <script  src="js/index.js"></script>




</body>

</html>

/*Downloaded from https://www.codeseek.co/ceejay76/a-pen-by-chris-jamson-PEQOOm */
.wrapper {
  width: 400px;
  height: 400px;
}


/*Downloaded from https://www.codeseek.co/ceejay76/a-pen-by-chris-jamson-PEQOOm */
(function() {
  var config;

  config = {
    type: 'pie',
    data: {
      datasets: [
        {
          data: [36,
        22,
        14,
        7,
        7,
        14],
          backgroundColor: ['rgba(0,0,0,0.3)',
        'rgba(0,0,0,0.4)',
        'rgba(0,0,0,0.5)',
        'rgba(0,0,0,0.6)',
        'rgba(0,0,0,0.7)',
        'rgba(0,0,0,0.8)'],
          borderWidth: [0,
        0,
        0,
        0,
        0,
        0]
        }
      ]
    },
    options: {
      responsive: true
    }
  };

  window.onload = function() {
    var ctx;
    ctx = document.getElementById("myChart").getContext("2d");
    return window.myPie = new Chart(ctx, config);
  };

}).call(this);

//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiPGFub255bW91cz4iXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7QUFBQSxNQUFBOztFQUFBLE1BQUEsR0FBUztJQUNQLElBQUEsRUFBSyxLQURFO0lBRVAsSUFBQSxFQUFLO01BQ0gsUUFBQSxFQUFTO1FBQUM7VUFDUixJQUFBLEVBQUssQ0FBQyxFQUFEO1FBQUks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