{% extends 'svg/plot-raw.jinja' %}
{% block dataset %}

    {% if content.is_dataframe(dataset.data) %}
        {% for series_index in dataset.data %}
        {% set series = dataset.data[series_index] %}

            <a class="dataset-link" href="#{{ dataset.ref_id }}">
                <path class="dataset-line" d="

                    {% for x, y in series.iteritems() %}
                        {% if loop.first %}M{% else %}L{% endif %} {# first loop Moves the "pen", others create Lines from last coord #}
                        {{ content.normalize_x(x) }} {{ content.normalize_y(y) }}
                    {% endfor %}
                " />
            </a>
        {% endfor %}

    {% endif %}

    {{ super() }}

{% endblock %}
