xref: /webtrees/resources/views/modules/charts/chart.phtml (revision ac71572d8462e396ed5a307f05b29381e49f9e6e)
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