{% load i18n %} {% if headers %}
{% if data %} #  {% endif %} {% blocktrans trimmed with duration=duration|floatformat:2 %} Execution time: {{ duration }} ms {% endblocktrans %}
{% if rows > total_rows %} {% trans "Showing" %}  {% else %} {% trans "First" %}  {% endif %} {% blocktrans %}of {{ total_rows }} total rows.{% endblocktrans %}
{% for h in headers %} {% endfor %} {% for h in headers %} {% endfor %} {% if data %} {% for row in data %} {% for i in row %} {% if unsafe_rendering %} {% else %} {% endif %} {% endfor %} {% endfor %} {% else %} {% endif %}
{{ h }}
{% if h.summary %}
{% for label, value in h.summary.stats.items %}
{{ label }}: {{ value }}
{% endfor %}
{% endif %}
{{ forloop.counter0 }} {% autoescape off %}{{ i }}{% endautoescape %} {{ i }}
{% trans "Empty Resultset" %}
{% if query.id and query.snapshot and query.snapshots %}
{{ snapshots|length }} Snapshots (oldest first)

{% endif %} {% if data %}
{% trans "Pivot" %}
{% if charts_enabled %}
{% trans "Pie chart" %}
{% if pie_chart_svg %}
{{ pie_chart_svg | safe }}
{% else %}

{% blocktrans %} This query result table is not formatted in a way which could be displayed as a pie chart. {% endblocktrans %}

{% blocktrans %} Query results can be displayed as a pie chart as follows: each row represents one sector of the pie; the first column will be used as a label while the second column is used to determine the size of the sector. Thus the second column must be of a numeric type. Rows which contain NULLs will be ignored. {% endblocktrans %}

{% blocktrans %} Use this sample query to see it in action: {% endblocktrans %}

    SELECT *
    FROM (VALUES ('apple', 7),
                 ('orange', 8),
                 ('grape', 9),
                 ('peppermint', 1))
        AS fruit_salad_proportions;
{% endif %}
{% trans "Line chart" %}
{% if line_chart_svg %}
{{ line_chart_svg | safe }}
{% else %}

{% blocktrans %} This query result table is not formatted in a way which could be displayed as a line chart. {% endblocktrans %}

{% blocktrans %} Query results can be displayed as a line chart as follows: the first column represents the values on the x-axis (e.g. dates). All other numeric columns represent one line on the chart. Other columns will be ignored. {% endblocktrans %}

{% blocktrans %} Use this sample query to see it in action: {% endblocktrans %}

    SELECT *
    FROM (VALUES ('2019-01-01'::date, 500,550,530),
                 ('2020-01-01'::date, 530, 580, 570),
                 ('2021-01-01'::date, 580, 590, 670),
                 ('2022-01-01'::date, 700, 620, 780))
        AS fruit_salad_proportions(date, generosity, joy, happiness);
{% endif %}
{% endif %} {% endif %}
{% endif %}