includes/modals/graph_modal.php
<!-- Empty shell reused for every graph: main.js sets this dialog's id/data-graph to the clicked metric, then fetches api/graphs.php and injects the returned SVG into the .graph div below. -->
<dialog class="modal" id="graph-modal">
<div>
<div class="graph" data-error="<?= h(t('graph.error')) ?>" data-generating="<?= h(t('graph.generating')) ?>" data-no-data="<?= h(t('graph.no.data')) ?>"></div>
</div>
</dialog>