JSFiddle - React, Tailwind, and code Playground
by TheDiamondDoge
HTML
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.4.0/Chart.min.js"></script>
<canvas id="myChart"></canvas>
JavaScript
var ctx = document.getElementById('myChart').getContext('2d');
var chart = new Chart(ctx, {
// The type of chart we want to create
type: 'pie',
// The data for our dataset
data: {
labels: ["GoProject", "NoGo", "NoGoNow", "ConditionalGo"],
datasets: [{
backgroundColor: [
'rgb(0, 255, 60)',
'rgb(255, 99, 132)',
'rgb(255, 255, 0)',
'rgb(0, 255, 255)'
],
data: [1, 10, 5, 2],
}]
},
// Configuration options go here
options: {
}
});