-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathline.php
More file actions
27 lines (25 loc) · 884 Bytes
/
line.php
File metadata and controls
27 lines (25 loc) · 884 Bytes
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
<div class="col-6">
<div class="card text-center">
<canvas id="chart2"></canvas>
<script>
var ctx = document.getElementById('chart2').getContext('2d');
var chart = new Chart(ctx, {
// The type of chart we want to create
type: 'line',
// The data for our dataset
data: {
labels: ['January', 'February', 'March', 'April', 'May', 'June', 'July'],
datasets: [{
label: 'My First dataset',
backgroundColor: 'rgb(255, 99, 132)',
borderColor: 'rgb(255, 99, 132)',
data: [50, 35, 30, 37, 45, 30, 45]
}]
},
// Configuration options go here
options: {}
});
</script>
<h2 class="card-header mt-5">Line Chart</h2>
</div>
</div>