<canvas id="myChart" ></canvas>
var ctx = document.getElementById('myChart').getContext('2d');
var myDoughnutChart = new Chart(ctx, {
type: 'doughnut',data: {
labels: ["Red", "Blue", "Yellow"],
datasets: [{data: [300, 50, 100],
backgroundColor: ["rgb(255, 53, 92)","rgb(1, 145, 255)","rgb(255, 186, 45)"]
}]
}
});
This Pen doesn't use any external CSS resources.