p>
Download CSV:
<a href="{% url 'spending_by_org' %}?code={{ page_id }}&format=csv{{ extra_api_params }}">all data on {{ chemical.chem_name }}</a> or
<a href="{% url 'spending_by_ccg' %}?code={{ page_id }}&format=csv">data on {{ chemical.chem_name }} by Sub-ICB Location</a>.
</p>
</div>

{% endblock %}

{% block extra_js %}
{% conditional_js 'config' %}
<script>
var filename = config.apiHost + "{% url 'spending_by_org' %}?format=json&code={{ page_id }}{{ extra_api_params }}";
var pageType = 'chemical';
var