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