{# Display Chart options #}
{{ Url_getHiddenInputs(url_params) }}
{% trans 'Display chart' %}
{% trans %}Bar{% context %}Chart type{% endtrans %}
{% trans %}Column{% context %}Chart type{% endtrans %}
{% trans %}Line{% context %}Chart type{% endtrans %}
{% trans %}Spline{% context %}Chart type{% endtrans %}
{% trans %}Area{% context %}Chart type{% endtrans %}
{% trans %}Pie{% context %}Chart type{% endtrans %}
{% trans %}Timeline{% context %}Chart type{% endtrans %}
{% trans %}Scatter{% context %}Chart type{% endtrans %}
{% trans 'Stacked' %}
{% trans 'Chart title:' %}
{% set xaxis = null %}
{% trans 'X-Axis:' %}
{% for idx, key in keys %} {% if xaxis is same as(null) %} {% set xaxis = idx %} {% endif %} {% if xaxis is same as(idx) %}
{{ key }}
{% else %}
{{ key }}
{% endif %} {% endfor %}
{% trans 'Series:' %}
{% for idx, key in keys %} {% if fields_meta[idx].type in numeric_types %} {% if idx == xaxis and numeric_column_count > 1 %}
{{ key }}
{% else %}
{{ key }}
{% endif %} {% endif %} {% endfor %}
{% trans 'X-Axis label:' %}
{% trans 'Y-Axis label:' %}
{% trans 'Series names are in a column' %}
{% trans 'Series column:' %}
{% for idx, key in keys %}
{{ key }}
{% set series_column = idx %} {% endfor %}
{% trans 'Value Column:' %}
{% set selected = false %} {% for idx, key in keys %} {% if fields_meta[idx].type in numeric_types %} {% if not selected and idx != xaxis and idx != series_column %}
{{ key }}
{% set selected = true %} {% else %}
{{ key }}
{% endif %} {% endif %} {% endfor %}
{{ Util_getStartAndNumberOfRowsPanel(sql_query) }}
{{ Util_getImage('b_saveimage', 'Save chart as image'|trans) }}