<?php

/**
 * @var int $block_id
 * @var string $chart_url
 */

?>
<div id="chart-block-<?= e($block_id) ?>"></div>

<script>
    $(<?= json_encode('#chart-block-' . $block_id, JSON_THROW_ON_ERROR) ?>).load(<?= json_encode($chart_url, JSON_THROW_ON_ERROR) ?>);
</script>
