xref: /webtrees/resources/views/statistics/other/charts/custom.phtml (revision 8d6560c40d2d2d26dd23f877bd58f736e0388d8f)
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