{% with "echarts-config-"|add:chart_container_id as chart_config_id %} {{ chart_config|json_script:chart_config_id }} {% endwith %}