<script>
    window.chartData.push({
        label: "{{ label }}",
        type:  "bar",
        dateformat: "MMM 'YY",
        data: {
            labels: [
                {% for total in monthly_totals -%}
                new Date({{ total.begin_date.year }}, {{ total.begin_date.month-1 }}, {{ total.begin_date.day }}),
                {% endfor %}
            ],
            series: [
                {% for currency in operating_currencies -%}
                {
                    name: "{{ currency }}",
                    data: [
                        {% for total in monthly_totals -%}
                            {% if total.totals[currency] %}
                                {
                                    y: {{ total.totals[currency] }},
                                    meta: "{{ total.totals[currency]|format_currency }} {{ currency }}"
                                },
                            {% endif %}
                        {% endfor %}
                    ],
                },
                {% endfor -%}
            ]
        }
    });
</script>

<script>
    window.chartData.push({
        label: "{{ label }}",
        type:  "bar",
        dateformat: "MMM 'YY",
        data: {
            labels: [
                {% for total in monthly_totals -%}
                new Date({{ total.begin_date.year }}, {{ total.begin_date.month-1 }}, {{ total.begin_date.day }}),
                {% endfor %}
            ],
            series: [
                {% for currency in operating_currencies -%}
                {
                    name: "{{ currency }}",
                    data: [
                        {% for total in monthly_totals -%}
                            {
                                y: {{ total.totals[currency] or 0 }},
                                meta: "{{ total.totals[currency]|format_currency or 0.00 }} {{ currency }}"
                            },
                        {% endfor %}
                    ],
                },
                {% endfor -%}
            ]
        }
    });
</script>

Fix monthly totals table for multiple currencies (2)
Fix monthly totals table for multiple currencies (2)
