-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpie.php
More file actions
34 lines (32 loc) · 1.15 KB
/
pie.php
File metadata and controls
34 lines (32 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<div class="col-6">
<div class="card text-center">
<canvas id="chart3"></canvas>
<script>
var ctx = document.getElementById('chart3').getContext('2d');
var chart = new Chart(ctx, {
// The type of chart we want to create
type: 'pie',
// The data for our dataset
data: {
labels: ['January', 'February', 'March', 'April', 'May', 'June', 'July'],
datasets: [{
label: 'My First dataset',
backgroundColor: [
'rgba(255, 99, 132, 0.2)',
'rgba(54, 162, 235, 0.2)',
'rgba(255, 206, 86, 0.2)',
'rgba(75, 192, 192, 0.2)',
'rgba(153, 102, 255, 0.2)',
'rgba(255, 159, 64, 0.2)'
],
borderColor: 'white',
data: [50, 35, 30, 37, 45, 30, 45]
}]
},
// Configuration options go here
options: {}
});
</script>
<h2 class="card-header mt-5">Pie Chart</h2>
</div>
</div>