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