up graphes stats de ville
This commit is contained in:
parent
b323c2fe9f
commit
62e086cd64
2 changed files with 161 additions and 82 deletions
|
|
@ -152,7 +152,7 @@
|
|||
}
|
||||
|
||||
#stats-table thead th {
|
||||
background: #f8f9fa;
|
||||
background:rgb(255, 255, 255);
|
||||
border-bottom: 2px solid #dee2e6;
|
||||
box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.1);
|
||||
padding: 0.75rem;
|
||||
|
|
@ -706,16 +706,16 @@
|
|||
<p class="mb-0">Comment est calculé le score de complétion ?</p>
|
||||
<i class="bi bi-chevron-down ms-auto" id="completionInfoIcon"></i>
|
||||
</div>
|
||||
<div id="completionInfoContent" style="display: none;" class="mt-3">
|
||||
<div id="completionInfoContent" class="mt-3">
|
||||
<p>Le score de complétion est calculé en fonction de plusieurs critères :</p>
|
||||
<ul>
|
||||
<li>Nom du commerce</li>
|
||||
<li>Adresse complète (numéro, rue, code postal)</li>
|
||||
<li>Horaires d'ouverture</li>
|
||||
<li>Site web</li>
|
||||
<li>Numéro de téléphone</li>
|
||||
<li>Accessibilité PMR</li>
|
||||
<li>SIRET</li>
|
||||
<li>Nom du commerce: tag name</li>
|
||||
<li>Adresse complète (numéro, rue, code postal): tag contact:street ou addr:street et tag contact:housenumber ou addr:housenumber</li>
|
||||
<li>Horaires d'ouverture: tag opening_hours</li>
|
||||
<li>Site web: tag website ou contact:website ou url ou contact:url</li>
|
||||
<li>Numéro de téléphone: tag phone ou contact:phone</li>
|
||||
<li>Accessibilité PMR: tag wheelchair</li>
|
||||
<li>SIRET: tag ref:FR:SIRET</li>
|
||||
</ul>
|
||||
<p>Chaque critère rempli augmente le score de complétion d'une part égale.
|
||||
Un commerce parfaitement renseigné aura un score de 100%.</p>
|
||||
|
|
@ -1220,15 +1220,19 @@
|
|||
console.log('pas de completionCtx');
|
||||
} else {
|
||||
new Chart(completionCtx, {
|
||||
type: 'bar',
|
||||
type: 'line',
|
||||
data: {
|
||||
labels: completionLabels,
|
||||
datasets: [{
|
||||
label: 'Évolution du taux de complétion',
|
||||
label: 'Décompte des objets par tranches de complétion',
|
||||
data: completionValues,
|
||||
backgroundColor: 'rgba(75, 192, 192, 0.5)',
|
||||
backgroundColor: 'rgba(75, 192, 192, 0.1)',
|
||||
borderColor: 'rgba(75, 192, 192, 1)',
|
||||
borderWidth: 1
|
||||
borderWidth: 2,
|
||||
tension: 0.3,
|
||||
fill: false,
|
||||
pointRadius: 4,
|
||||
pointHoverRadius: 6
|
||||
}]
|
||||
},
|
||||
options: {
|
||||
|
|
@ -1241,7 +1245,7 @@
|
|||
plugins: {
|
||||
title: {
|
||||
display: true,
|
||||
text: 'Évolution du taux de complétion',
|
||||
text: 'Décompte des objets par tranches de complétion',
|
||||
font: {
|
||||
size: 16
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue