#5 Latest views are now displayed on the stats page
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
|
||||
|
||||
<div>
|
||||
<canvas id="myChart"></canvas>
|
||||
<canvas id="myChart" width="800px" height="500px"></canvas>
|
||||
</div>
|
||||
|
||||
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
|
||||
@ -13,9 +13,9 @@
|
||||
new Chart(ctx, {
|
||||
type: 'line',
|
||||
data: {
|
||||
labels: {{data}},
|
||||
labels: {{headings}},
|
||||
datasets: [{
|
||||
label: '# of Votes',
|
||||
label: '# of Views',
|
||||
data: {{data}},
|
||||
borderWidth: 1
|
||||
}]
|
||||
@ -23,7 +23,17 @@
|
||||
options: {
|
||||
scales: {
|
||||
y: {
|
||||
title: {
|
||||
display: true,
|
||||
text: "Num Views"
|
||||
},
|
||||
beginAtZero: true
|
||||
},
|
||||
x: {
|
||||
title: {
|
||||
display: true,
|
||||
text: "Prev Days"
|
||||
},
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user