{% load i18n %} {% get_current_language as chart_language %} {% comment %} Upstream draws with Recharts and injects a style block per chart to turn the config into a --color- custom property per key. A copied template injects no CSS, so the properties are written onto this element instead — same result, and it is what lets a series follow the theme without any JavaScript running again. config and data arrive as JSON in attributes. Django escapes them, the browser decodes them back, and dataset hands over the decoded string, which is the path the combobox has been taking all along. {% endcomment %}
{{ slot }}