<?php
/**
 * Copyright 2020 Adobe
 * All Rights Reserved.
 */
use Magento\Framework\Escaper;
use Magento\Framework\View\Element\Template;

/**
 * @var Template $block
 * @var Escaper $escaper
 */
?>
<script type="text/x-magento-init">
{
    "#dashboard_diagram_totals": {
        "Magento_Backend/js/dashboard/totals": {
            "updateUrl": "<?= $escaper->escapeUrl($block->getUrl('adminhtml/*/ajaxBlock', [
                '_current' => true,
                'block' => 'totals',
                'period' => ''
            ])) ?>",
            "periodSelect": "#dashboard_chart_period"
        }
    }
}
</script>
