-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbubble.php
69 lines (67 loc) · 2.08 KB
/
bubble.php
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<div class="col-6">
<div class="card text-center">
<canvas id="chart7"></canvas>
<script>
var ctx = document.getElementById('chart7').getContext('2d');
var chart = new Chart(ctx, {
// The type of chart we want to create
type: 'bubble',
// 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: [{
x: 5,
y: 25,
r: 20,
},
{
x: 15,
y: 45,
r: 20,
},
{
x: 30,
y: 50,
r: 20,
},
{
x: 40,
y: 10,
r: 20,
},
{
x: 50,
y: 20,
r: 20,
},
{
x: 15,
y: 25,
r: 20,
},
{
x: 25,
y: 35,
r: 20,
},
]
}]
},
// Configuration options go here
options: {}
});
</script>
<h2 class="card-header mt-5">Bubble Chart</h2>
</div>
</div>