xref: /webtrees/resources/views/statistics/other/charts/custom.phtml (revision e759aebbec359cf7148227a725fea81907659ae8)
1<?php
2declare(strict_types=1);
3
4use Fisharebest\Webtrees\I18N;
5?>
6
7<?php if (count($data) === 1): ?>
8    <?= I18N::translate('This information is not available.'); ?>
9<?php else: ?>
10
11    <div class="mb-3">
12        <div class="card-deck">
13            <div class="col-12 mb-3">
14                <div class="card m-0">
15                    <div class="card-header">
16                        <?= $chart_title ?>
17                    </div>
18                    <div class="card-body">
19                        <?= view('statistics/other/charts/column', [ 'data' => $data, 'chart_options' => $chart_options]) ?>
20                    </div>
21                </div>
22            </div>
23        </div>
24    </div>
25<?php endif; ?>
26