Add stat page
This commit is contained in:
parent
1258d6dc25
commit
3da6a25867
8 changed files with 213 additions and 19 deletions
|
@ -87,4 +87,24 @@
|
|||
});
|
||||
return chart;
|
||||
}
|
||||
|
||||
function draw_timeline(data, $chart) {
|
||||
var ctx = $chart.find('canvas')[0].getContext('2d');
|
||||
var chart = new Chart(ctx, {
|
||||
type: 'line',
|
||||
data: data,
|
||||
options: {
|
||||
maintainAspectRatio: false,
|
||||
legend: {
|
||||
display: false,
|
||||
},
|
||||
scales: {
|
||||
xAxes: [{
|
||||
type: 'time',
|
||||
}]
|
||||
},
|
||||
},
|
||||
});
|
||||
return chart;
|
||||
}
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue