Add page to display stat from coa.crapaud-fou.org.
It's static graphic It's just a test for the moment
This commit is contained in:
parent
aae5765708
commit
13a6cd73f4
2 changed files with 44 additions and 0 deletions
42
statpages/channelsstats.html
Normal file
42
statpages/channelsstats.html
Normal file
|
@ -0,0 +1,42 @@
|
||||||
|
<HTML>
|
||||||
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.4.0/Chart.min.js"></script>
|
||||||
|
<script type="text/javascript" src="./channels.js"></script>
|
||||||
|
<canvas id="myChart"></canvas>
|
||||||
|
<script>
|
||||||
|
var ctx = document.getElementById('myChart').getContext('2d');
|
||||||
|
var chart = new Chart(ctx, {
|
||||||
|
// The type of chart we want to create
|
||||||
|
type: 'bar',
|
||||||
|
|
||||||
|
// The data for our dataset
|
||||||
|
data: {
|
||||||
|
labels: ['Janvier', 'Fevrier', 'Mars', 'Avril', 'Mai', 'Juin', 'Juillet', 'Aout', 'Septembre', 'Octobre', 'Novembre'],
|
||||||
|
datasets: data,
|
||||||
|
},
|
||||||
|
|
||||||
|
// Configuration options go here
|
||||||
|
options: {
|
||||||
|
legend: {
|
||||||
|
display: false
|
||||||
|
},
|
||||||
|
title: {
|
||||||
|
display: true,
|
||||||
|
text: title,
|
||||||
|
position: "bottom"
|
||||||
|
},
|
||||||
|
scales: {
|
||||||
|
xAxes: [{
|
||||||
|
stacked: true
|
||||||
|
}],
|
||||||
|
yAxes: [{
|
||||||
|
stacked: true,
|
||||||
|
ticks: {
|
||||||
|
stepSize: 500
|
||||||
|
}
|
||||||
|
}]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
|
</HTML>
|
2
statpages/channelsstats.js
Normal file
2
statpages/channelsstats.js
Normal file
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue