Adds example data notice in charts under construction

main
Yasen Pramatarov 2024-10-13 11:32:57 +03:00
parent 0318670bce
commit 7e09815835
3 changed files with 24 additions and 17 deletions

View File

@ -1,18 +1,23 @@
<?php
// FIXME example data
$one = date('Y-m-d',strtotime("-5 days"));
$two = date('Y-m-d',strtotime("-4 days"));
$three = date('Y-m-d',strtotime("-2 days"));
$four = date('Y-m-d',strtotime("-1 days"));
$graph[0]['data0'] = [
['date' => '2024-10-06', 'value' => 10],
['date' => '2024-10-07', 'value' => 20],
['date' => '2024-10-10', 'value' => 15],
['date' => '2024-10-11', 'value' => 25],
['date' => $one, 'value' => 10],
['date' => $two, 'value' => 20],
['date' => $three, 'value' => 15],
['date' => $four, 'value' => 25],
];
$graph[0]['data1'] = [
['date' => '2024-10-06', 'value' => 12],
['date' => '2024-10-07', 'value' => 23],
['date' => '2024-10-10', 'value' => 11],
['date' => '2024-10-11', 'value' => 27],
['date' => $one, 'value' => 12],
['date' => $two, 'value' => 23],
['date' => $three, 'value' => 11],
['date' => $four, 'value' => 27],
];
$graph[0]['graph_name'] = 'conferences';
@ -21,17 +26,17 @@ $graph[0]['graph_data0_label'] = 'Conferences from Jitsi logs (Jilo)';
$graph[0]['graph_data1_label'] = 'Conferences from Jitsi API (Jilo Agents)';
$graph[1]['data0'] = [
['date' => '2024-10-06', 'value' => 20],
['date' => '2024-10-07', 'value' => 30],
['date' => '2024-10-10', 'value' => 15],
['date' => '2024-10-11', 'value' => 55],
['date' => $one, 'value' => 20],
['date' => $two, 'value' => 30],
['date' => $three, 'value' => 15],
['date' => $four, 'value' => 55],
];
$graph[1]['data1'] = [
['date' => '2024-10-06', 'value' => 22],
['date' => '2024-10-07', 'value' => 33],
['date' => '2024-10-10', 'value' => 11],
['date' => '2024-10-11', 'value' => 57],
['date' => $one, 'value' => 22],
['date' => $two, 'value' => 33],
['date' => $three, 'value' => 11],
['date' => $four, 'value' => 57],
];
$graph[1]['graph_name'] = 'participants';

View File

@ -1,4 +1,6 @@
<hr /><p class="m-3">NB: This functionality is still under development. The data is just an example.</p><hr /><!-- FIXME remove when implemented -->
<div class="row">
<div class="card w-auto bg-light border-light card-body filter-results">
<div class="btn-group" role="group">

View File

@ -5,6 +5,7 @@
<div class="collapse show" id="collapse<?= htmlspecialchars($widget['name']) ?>">
<div class="mb-5">
<hr /><p class="m-3">NB: This functionality is still under development. The data is just an example.</p><hr /><!-- FIXME remove when implemented -->
<?php if ($widget['full'] === true) { ?>
<table class="table table-results table-striped table-hover table-bordered">
<thead class="thead-dark">
@ -39,7 +40,6 @@
<?php } else { ?>
<p class="m-3">No records found.</p>
<?php } ?>
<hr /><p class="m-3">NB: This functionality is still under development.</p>
</div>
</div>
<!-- /widget "<?= htmlspecialchars($widget['name']) ?>" -->