{% set chart_id = 0 %} {% macro chartkick(name, data, height, options) %} {% if chart_id == 0 %} {% endif %} {% set chart_id = chart_id + 1 %}