2018-12-02 18:01:54 +00:00
|
|
|
---
|
2019-06-08 10:44:19 +00:00
|
|
|
layout: page
|
2018-12-02 18:22:28 +00:00
|
|
|
permalink: /channelsstats/
|
2018-12-02 18:24:34 +00:00
|
|
|
title: Statistiques du Chat
|
|
|
|
linktitle: "Statistiques du Chat"
|
2018-12-02 18:01:54 +00:00
|
|
|
linkurl: /channelsstats/
|
2018-12-02 18:14:20 +00:00
|
|
|
description: "Statistiques sur le chat https://coa.crapaud-fou.org"
|
2019-06-08 10:44:19 +00:00
|
|
|
chartjs: true
|
|
|
|
jquery: true
|
2018-12-02 18:01:54 +00:00
|
|
|
---
|
|
|
|
|
2019-06-08 10:44:19 +00:00
|
|
|
Statistiques du <a href="https://coa.crapaud-fou.org">chat</a> (aussi connu sous le nom de mare aux crapauds) :
|
2018-11-14 20:55:47 +00:00
|
|
|
<canvas id="byChannel"></canvas>
|
|
|
|
<canvas id="byTsunamy"></canvas>
|
2019-06-08 11:37:34 +00:00
|
|
|
<canvas id="usersByChannel"></canvas>
|
2019-06-27 19:19:19 +00:00
|
|
|
<canvas id="usersGlobal"></canvas>
|
2018-11-14 17:50:45 +00:00
|
|
|
<script>
|
2018-12-02 18:01:54 +00:00
|
|
|
|
2019-06-09 13:14:27 +00:00
|
|
|
$.getJSON("{{ site.baseurl }}/public/data/channelsstat.json", function (datas){
|
2019-06-08 21:21:30 +00:00
|
|
|
updated = datas['updated']
|
|
|
|
|
2019-06-08 20:32:24 +00:00
|
|
|
labels = datas['labels'];
|
|
|
|
|
2018-11-14 20:55:47 +00:00
|
|
|
var ctx = document.getElementById('byChannel').getContext('2d');
|
2018-11-14 17:50:45 +00:00
|
|
|
var chart = new Chart(ctx, {
|
|
|
|
// The type of chart we want to create
|
|
|
|
type: 'bar',
|
|
|
|
|
|
|
|
// The data for our dataset
|
|
|
|
data: {
|
2018-12-02 18:01:54 +00:00
|
|
|
labels: labels,
|
2019-06-08 20:32:24 +00:00
|
|
|
datasets: datas['messagesByChannel'],
|
2018-11-14 17:50:45 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
// Configuration options go here
|
|
|
|
options: {
|
|
|
|
legend: {
|
|
|
|
display: false
|
|
|
|
},
|
|
|
|
title: {
|
|
|
|
display: true,
|
2018-12-02 18:01:54 +00:00
|
|
|
text: "Nombre de message par canaux (" + updated + ")",
|
2018-12-02 18:50:59 +00:00
|
|
|
position: "top"
|
2018-11-14 17:50:45 +00:00
|
|
|
},
|
2018-11-14 20:55:47 +00:00
|
|
|
responsive: true,
|
|
|
|
scales: {
|
|
|
|
xAxes: [{
|
|
|
|
stacked: true
|
|
|
|
}],
|
|
|
|
yAxes: [{
|
|
|
|
stacked: true,
|
|
|
|
ticks: {
|
|
|
|
stepSize: 500
|
|
|
|
}
|
|
|
|
}]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
2019-06-08 10:44:19 +00:00
|
|
|
|
2019-06-09 12:59:22 +00:00
|
|
|
var ctx2 = document.getElementById('byTsunamy').getContext('2d');
|
|
|
|
var chart2 = new Chart(ctx2, {
|
2018-11-14 20:55:47 +00:00
|
|
|
// The type of chart we want to create
|
|
|
|
type: 'bar',
|
|
|
|
|
|
|
|
// The data for our dataset
|
|
|
|
data: {
|
2018-12-02 18:01:54 +00:00
|
|
|
labels: labels,
|
2019-06-09 12:59:22 +00:00
|
|
|
datasets: datas['messagesByTsunamy'],
|
2018-11-14 20:55:47 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
// Configuration options go here
|
|
|
|
options: {
|
|
|
|
legend: {
|
|
|
|
display: false
|
|
|
|
},
|
|
|
|
title: {
|
|
|
|
display: true,
|
2019-06-09 12:59:22 +00:00
|
|
|
text: "Nombre de message par Tsunami (" + updated + ")",
|
2018-12-02 18:50:59 +00:00
|
|
|
position: "top"
|
2018-11-14 20:55:47 +00:00
|
|
|
},
|
|
|
|
responsive: true,
|
2018-11-14 17:50:45 +00:00
|
|
|
scales: {
|
|
|
|
xAxes: [{
|
|
|
|
stacked: true
|
|
|
|
}],
|
|
|
|
yAxes: [{
|
|
|
|
stacked: true,
|
|
|
|
ticks: {
|
2019-06-09 12:59:22 +00:00
|
|
|
stepSize: 500
|
2018-11-14 17:50:45 +00:00
|
|
|
}
|
|
|
|
}]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
2019-06-08 10:44:19 +00:00
|
|
|
|
2019-06-09 12:59:22 +00:00
|
|
|
var ctx3 = document.getElementById('usersByChannel').getContext('2d');
|
|
|
|
var chart3 = new Chart(ctx3, {
|
2018-11-15 20:56:19 +00:00
|
|
|
// The type of chart we want to create
|
|
|
|
type: 'bar',
|
|
|
|
|
|
|
|
// The data for our dataset
|
|
|
|
data: {
|
2018-12-02 18:01:54 +00:00
|
|
|
labels: labels,
|
2019-06-09 12:59:22 +00:00
|
|
|
datasets: datas['usersByChannel'],
|
2018-11-15 20:56:19 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
// Configuration options go here
|
|
|
|
options: {
|
|
|
|
legend: {
|
|
|
|
display: false
|
|
|
|
},
|
|
|
|
title: {
|
|
|
|
display: true,
|
2019-06-09 12:59:22 +00:00
|
|
|
text: "Nombre d'utilisateur actifs par canaux (" + updated + ")",
|
2018-12-02 18:50:59 +00:00
|
|
|
position: "top"
|
2018-11-15 20:56:19 +00:00
|
|
|
},
|
|
|
|
responsive: true,
|
|
|
|
scales: {
|
|
|
|
xAxes: [{
|
|
|
|
stacked: true
|
|
|
|
}],
|
|
|
|
yAxes: [{
|
|
|
|
stacked: true,
|
|
|
|
ticks: {
|
2019-06-09 12:59:22 +00:00
|
|
|
stepSize: 50
|
2018-11-15 20:56:19 +00:00
|
|
|
}
|
|
|
|
}]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
2019-06-27 19:19:19 +00:00
|
|
|
|
|
|
|
var ctx4 = document.getElementById('usersGlobal').getContext('2d');
|
|
|
|
var chart4 = new Chart(ctx4, {
|
|
|
|
// The type of chart we want to create
|
|
|
|
type: 'bar',
|
|
|
|
|
|
|
|
// The data for our dataset
|
|
|
|
data: {
|
|
|
|
labels: labels,
|
|
|
|
datasets: datas['usersGlobal'],
|
|
|
|
},
|
|
|
|
|
|
|
|
// Configuration options go here
|
|
|
|
options: {
|
|
|
|
legend: {
|
|
|
|
display: false
|
|
|
|
},
|
|
|
|
title: {
|
|
|
|
display: true,
|
|
|
|
text: "Nombre d'utilisateur actifs (" + updated + ")",
|
|
|
|
position: "top"
|
|
|
|
},
|
|
|
|
responsive: true,
|
|
|
|
scales: {
|
|
|
|
xAxes: [{
|
|
|
|
stacked: true
|
|
|
|
}],
|
|
|
|
yAxes: [{
|
|
|
|
stacked: true,
|
|
|
|
ticks: {
|
|
|
|
stepSize: 50
|
|
|
|
}
|
|
|
|
}]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
2019-06-08 11:37:34 +00:00
|
|
|
});
|
2018-12-02 18:01:54 +00:00
|
|
|
</script>
|