mirror of
https://forge.chapril.org/tykayn/osm-commerces
synced 2025-10-04 17:04:53 +02:00
up score complétion normalisé dans le podium
This commit is contained in:
parent
c3a9bc52b2
commit
59398d14ba
8 changed files with 116 additions and 36 deletions
|
@ -5,7 +5,7 @@
|
|||
{% block body %}
|
||||
<div class="container mt-4">
|
||||
<h1>Podium des contributeurs OSM</h1>
|
||||
<p>Voici les 10 contributeurs OpenStreetMap ayant ajouté ou modifié le plus de lieux dans la base :</p>
|
||||
<p>Voici les 10 contributeurs OpenStreetMap ayant ajouté ou modifié le plus de lieux dans la base, pondérés de la complétion moyenne des lieux :</p>
|
||||
<p>Le <strong>score de complétion moyen</strong> correspond à la moyenne du taux de complétion des lieux ajoutés ou modifiés par chaque contributeur.</p>
|
||||
<table class="table table-striped table-bordered mt-4" style="max-width:800px">
|
||||
<thead class="table-dark">
|
||||
|
@ -14,6 +14,8 @@
|
|||
<th scope="col">Utilisateur OSM</th>
|
||||
<th scope="col">Nombre de lieux</th>
|
||||
<th scope="col">Score de complétion moyen</th>
|
||||
<th scope="col">Score de complétion pondéré</th>
|
||||
<th scope="col">Score pondéré normalisé (0-100)</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
@ -33,9 +35,23 @@
|
|||
<span class="text-muted">N/A</span>
|
||||
{% endif %}
|
||||
</td>
|
||||
<td>
|
||||
{% if row.completion_pondere is not null %}
|
||||
{{ row.completion_pondere }}
|
||||
{% else %}
|
||||
<span class="text-muted">N/A</span>
|
||||
{% endif %}
|
||||
</td>
|
||||
<td>
|
||||
{% if row.completion_pondere_normalisee is not null %}
|
||||
{{ row.completion_pondere_normalisee }}
|
||||
{% else %}
|
||||
<span class="text-muted">N/A</span>
|
||||
{% endif %}
|
||||
</td>
|
||||
</tr>
|
||||
{% else %}
|
||||
<tr><td colspan="4">Aucun contributeur trouvé.</td></tr>
|
||||
<tr><td colspan="6">Aucun contributeur trouvé.</td></tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
|
|
|
@ -232,7 +232,15 @@
|
|||
</div>
|
||||
</div>
|
||||
<div id="map" style="height: 400px; width: 100%; margin-bottom: 1rem;"></div>
|
||||
|
||||
<div class="row ">
|
||||
|
||||
<div class="col-md-6 col-12 ">
|
||||
<canvas id="repartition_tags" width="600" height="300" style="max-width:100%; margin: 20px 0;"></canvas>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-md-6 col-12 ">
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<i class="bi bi-calendar-event"></i> Fréquence des mises à jour par trimestre pour {{stats.name}}
|
||||
|
@ -241,6 +249,9 @@
|
|||
<canvas id="modificationsByQuarterChart" style="min-height: 250px; width: 100%;"></canvas>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="attribution">
|
||||
<a href="https://www.openstreetmap.org/copyright">Données OpenStreetMap</a>
|
||||
|
@ -263,7 +274,7 @@
|
|||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<input type="text" id="stats-table-search" class="form-control mb-2" placeholder="Filtrer les lieux...">
|
||||
{# <input type="text" id="stats-table-search" class="form-control mb-2" placeholder="Filtrer les lieux..."> #}
|
||||
<table id="stats-table" class="table table-bordered table-striped table-hover table-responsive table-sort">
|
||||
{% include 'admin/stats/table-head.html.twig' %}
|
||||
<tbody>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue