xref: /webtrees/resources/views/modules/charts/chart.phtml (revision 4a9a60957058ca2a34e30a0d6f783e1540606590)
1<?php
2
3declare(strict_types=1);
4
5/**
6 * @var int $block_id
7 * @var string $chart_url
8 */
9
10?>
11<div id="chart-block-<?= e($block_id) ?>"></div>
12
13<script>
14    $(<?= json_encode('#chart-block-' . $block_id, JSON_THROW_ON_ERROR) ?>).load(<?= json_encode($chart_url, JSON_THROW_ON_ERROR) ?>);
15</script>
16