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