Skip to content

Commit

Permalink
update static files
Browse files Browse the repository at this point in the history
  • Loading branch information
nz-m committed Aug 19, 2022
1 parent c51b847 commit e69762e
Show file tree
Hide file tree
Showing 46 changed files with 57,048 additions and 17 deletions.
7,066 changes: 7,066 additions & 0 deletions static/js/bootstrap.bundle.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/js/bootstrap.bundle.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions static/js/bootstrap.bundle.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion static/js/bootstrap.bundle.min.js.map

Large diffs are not rendered by default.

5,204 changes: 5,204 additions & 0 deletions static/js/bootstrap.esm.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/js/bootstrap.esm.js.map

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions static/js/bootstrap.esm.min.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/js/bootstrap.esm.min.js.map

Large diffs are not rendered by default.

5,251 changes: 5,251 additions & 0 deletions static/js/bootstrap.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/js/bootstrap.js.map

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions static/js/bootstrap.min.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/js/bootstrap.min.js.map

Large diffs are not rendered by default.

71 changes: 71 additions & 0 deletions static/js/chart.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
var color = [
'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)'
]


var ctx = document.getElementById('canvas2').getContext('2d');
var myChart = new Chart(ctx, {
type: 'bar',
data: {
labels: ['Red', 'Blue', 'Yellow', 'Green', 'Purple', 'Orange'],
datasets: [{
label: '# of Votes',
data: [12, 19, 3, 5, 2, 3],
backgroundColor: color,
borderColor: [
'rgba(255, 99, 132, 1)',
'rgba(54, 162, 235, 1)',
'rgba(255, 206, 86, 1)',
'rgba(75, 192, 192, 1)',
'rgba(153, 102, 255, 1)',
'rgba(255, 159, 64, 1)'
],
borderWidth: 1
}]
},
options: {
scales: {
yAxes: [{
ticks: {
beginAtZero: true
}
}]
}
}
});
// make chart for question 3
var ctxs = document.getElementById('canvas3').getContext('2d');
var myCharts = new Chart(ctxs, {
type: 'bar',
data: {
labels: ['Red', 'Blue', 'Yellow', 'Green', 'Purple', 'Orange'],
datasets: [{
label: '# of Votes',
data: [12, 19, 3, 5, 2, 3],
backgroundColor: color,
borderColor: [
'rgba(255, 99, 132, 1)',
'rgba(54, 162, 235, 1)',
'rgba(255, 206, 86, 1)',
'rgba(75, 192, 192, 1)',
'rgba(153, 102, 255, 1)',
'rgba(255, 159, 64, 1)'
],
borderWidth: 1
}]
},
options: {
scales: {
yAxes: [{
ticks: {
beginAtZero: true
}
}]
}
}
});
Loading

0 comments on commit e69762e

Please sign in to comment.