- {% for value in values %}
- <g transform="translate({{ 150 + (loop.index0 * 640 / loop.length) }},0)">
- <rect width="{{ 640 / loop.length + 1 }}" height="18"></rect>
- <rect class="{{ value.class }}" x="1" y ="0" width="{{ 640 / loop.length - 1}}" height="18"></rect>
- <text class="choice-legend-item" text-anchor="start" x="{{ 640 / loop.length - 2 }}" y="9.5" dy=".35em"
- >{{ value.name }}</text>
- </g>
- {% endfor %}