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