+
+ {% for m in ["production", "exports", "imports", "ending_stocks"] %}
+
+ {% endfor %}
+
+
+ {% if selected_codes %}
+ Showing {{ selected_codes|length }} {{ "country" if selected_codes|length == 1 else "countries" }}
+ {% else %}
+ Select countries to compare
+ {% endif %}
+
+
+
+
+
+
+ Origins
+ {{ selected_codes|length }}/10
+
+
+
+
+
+ {% for c in all_countries %}
+
+
{{ loop.index }}
+
{{ c.country_name }}
+
{{ "{:,.0f}".format(c.production) if c.production else "" }}
+
-
+ {% endfor %}
+
+
-
- {% if comparison_data %}
-
-
+
+
+
+
+
+ {% if selected_codes %}
+ {% for code in selected_codes %}
+ {% set country = all_countries | selectattr("country_code", "equalto", code) | first %}
+ {% if country %}
+
+ {{ country.country_name }}
+ ×
+
+ {% endif %}
+ {% endfor %}
+ {% else %}
+ No countries selected
+ {% endif %}
+
+
+
+ {% if comparison_data %}
+
+
+
+
+
{{ metric.replace("_"," ").title() }} Over Time
+
USDA WASDE · 1000 60-kg bags · click legend to toggle
+
+
1k bags
+
+
+
+
+
+
+
+
+ {% else %}
+
+
+
+
Select Origins to Compare
+
Choose up to 10 coffee-producing countries from the panel on the left to visualize production, trade flows, and inventory trends.
+
+
+ {% endif %}
- {% else %}
-
- Select countries above to see the comparison chart.
-
- {% endif %}
+
{% endblock %}
{% block scripts %}