o redraw the chart
    // using correct dimensions.
    $(document).on('shown.bs.tab', '[data-bs-toggle="tab"], [data-toggle="pill"]',
    function (e) {
      window.dispatchEvent(new Event('resize'));
    });
});
</script>
{% endblock %}
