Skip to content

Commit

Permalink
Обновление страниц статистики
Browse files Browse the repository at this point in the history
  • Loading branch information
li0ard committed May 4, 2024
1 parent 819bcb3 commit 0ef910d
Show file tree
Hide file tree
Showing 3 changed files with 121 additions and 47 deletions.
54 changes: 52 additions & 2 deletions fedsfm/stats.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,57 @@
</div>
</div>
</nav>
<div class="container">
<div style="margin-top: 20px;" class="wrapper d-flex flex-column min-vh-100">
<div class="body flex-grow-1">
<div class="container-lg px-4">
<div class="row row-cols-1 row-cols-md-2">
<div class="col">
<div class="card mb-4">
<div class="card-header"><span class="small ms-1">По типу записи</span></div>
<div class="card-body">
<center>
<div class="p-3">
<canvas aria-label="По типу записи" role="img" id="type"></canvas>
</div>
</center>
</div>
</div>
</div>
<div class="col">
<div class="card mb-4">
<div class="card-header"><span class="small ms-1">Являются уроженцами Украины</span></div>
<div class="card-body">
<center>
<div class="p-3">
<canvas aria-label="Являются уроженцами Украины" role="img" id="ukr"></canvas>
</div>
</center>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col">
<div class="card mb-4">
<div class="card-header"><span class="small ms-1">Кол-во включений и исключений по годам</span></div>
<div class="card-body">
<div class="p-3">
<canvas aria-label="Кол-во включений и исключений по годам" role="img" id="years"></canvas>
<div style="margin-top: 10px;">
<center>
<button disabled onClick='years_cfg.type = "bar"; years.update()' class="btn btn-primary">Диаграмма</button>
<button disabled onClick='years_cfg.type = "line"; years.update()'class="btn btn-primary">График</button>
</center>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!--<div class="container">
<br>
<div class="row">
<center>
Expand Down Expand Up @@ -65,7 +115,7 @@ <h2>Статистика</h2>
</center>
</div>
<br>
</div>
</div>-->
<footer>
<center>
<br>
Expand Down
37 changes: 21 additions & 16 deletions orgs/stats.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,24 +35,29 @@
</div>
</div>
</nav>
<div class="container">
<br>
<div class="row">
<center>
<h2>Статистика</h2>
</center>
</div>
<br>
<div style="margin-top: 20px;" class="row">
<center>
<canvas aria-label="Кол-во включений и исключений по годам" role="img" id="years"></canvas>
<div>
<button disabled onClick='years_cfg.type = "bar"; years.update()' class="btn btn-primary">Диаграмма</button>
<button disabled onClick='years_cfg.type = "line"; years.update()'class="btn btn-primary">График</button>
<div style="margin-top: 20px;" class="wrapper d-flex flex-column min-vh-100">
<div class="body flex-grow-1">
<div class="container-lg px-4">
<div class="row">
<div class="col">
<div class="card mb-4">
<div class="card-header"><span class="small ms-1">Кол-во включений и исключений по годам</span></div>
<div class="card-body">
<div class="p-3">
<canvas aria-label="Кол-во включений и исключений по годам" role="img" id="years"></canvas>
<div style="margin-top: 10px;">
<center>
<button disabled onClick='years_cfg.type = "bar"; years.update()' class="btn btn-primary">Диаграмма</button>
<button disabled onClick='years_cfg.type = "line"; years.update()'class="btn btn-primary">График</button>
</center>
</div>
</div>
</div>
</div>
</div>
</div>
</center>
</div>
</div>
<br>
</div>
<footer>
<center>
Expand Down
77 changes: 48 additions & 29 deletions stats.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,36 +38,55 @@
</div>
</div>
</nav>
<div class="container">
<br>
<div class="row">
<center>
<h2>Статистика</h2>
</center>
</div>
<br>
<div class="row">
<div class="col">
<center>
<canvas aria-label="По типу агента" role="img" id="type"></canvas>
</center>
</div>
<div class="col">
<center>
<canvas aria-label="По закону" role="img" id="law"></canvas>
</center>
</div>
</div>
<div style="margin-top: 20px;" class="row">
<center>
<canvas aria-label="Кол-во включений и исключений по годам (Диаграмма)" role="img" id="years"></canvas>
<div>
<button disabled onClick='years_cfg.type = "bar"; years.update()' class="btn btn-primary">Диаграмма</button>
<button disabled onClick='years_cfg.type = "line"; years.update()'class="btn btn-primary">График</button>
<div style="margin-top: 20px;" class="wrapper d-flex flex-column min-vh-100">
<div class="body flex-grow-1">
<div class="container-lg px-4">
<div class="row row-cols-1 row-cols-md-2">
<div class="col">
<div class="card mb-4">
<div class="card-header"><span class="small ms-1">По типу агента</span></div>
<div class="card-body">
<center>
<div class="p-3">
<canvas aria-label="По типу агента" role="img" id="type"></canvas>
</div>
</center>
</div>
</div>
</div>
<div class="col">
<div class="card mb-4">
<div class="card-header"><span class="small ms-1">По основанию</span></div>
<div class="card-body">
<center>
<div class="p-3">
<canvas aria-label="Кол-во включений и исключений по годам" role="img" id="law"></canvas>
</div>
</center>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col">
<div class="card mb-4">
<div class="card-header"><span class="small ms-1">Кол-во включений и исключений по годам</span></div>
<div class="card-body">
<div class="p-3">
<canvas aria-label="По основанию" role="img" id="years"></canvas>
<div style="margin-top: 10px;">
<center>
<button disabled onClick='years_cfg.type = "bar"; years.update()' class="btn btn-primary">Диаграмма</button>
<button disabled onClick='years_cfg.type = "line"; years.update()'class="btn btn-primary">График</button>
</center>
</div>
</div>
</div>
</div>
</div>
</div>
</center>
</div>
</div>
<br>
</div>
<footer>
<center>
Expand Down Expand Up @@ -191,7 +210,7 @@ <h2>Статистика</h2>
plugins: {
title: {
display: true,
text: 'По кол-ву внесений/исключений (Диаграмма)'
text: 'По кол-ву внесений/исключений'
},
subtitle: {
display: true,
Expand Down

0 comments on commit 0ef910d

Please sign in to comment.