{% macro x(n) -%} {{ 15+((91-15)/(lines|length))*(n-1) }}% {%- endmacro %} {% for n in scale %} {% endfor %} {% for n in scale | reverse %} {{ n }} {% endfor %} {% for y1, y2 in lines %} {% endfor %} {% for cy in dots %} {% endfor %} {% for day in days %} {{ day }} {% endfor %}