{% extends 'creme_core/bricks/base/base.html' %} {% load i18n creme_bricks %} {% load jsondata templatize jsonify from creme_core_tags %} {% block brick_extra_class %}sketch-chart-brick reports-graph-brick{% if not data %} is-empty{% endif %}{% endblock %} {% block brick_header_title %} {% brick_header_title title=graph.name icon='report' %} {% endblock %} {% block brick_header_actions %} {% brick_header_action id='refresh' label=_('Reload') icon='reload' %} {% if data %} {% brick_header_action id='sketch-download' label=_('Download') icon='download' %} {% brick_header_action id='sketch-popover' label=_('Scale') icon='view' %} {% endif %} {% endblock %} {% block brick_content %} {% if data %}
{% translate 'Graph' context 'reports-graphs' %} : 
{% translate 'Sorting' %} : 
{% if object and fetcher.verbose_name %}
{% translate 'Volatile column' %} :  {{ fetcher.verbose_name }}
{% endif %}
{% jsondata data class="sketch-chart-data" %} {% if props %}{% jsondata props class="sketch-chart-props" %}{% endif %} {% elif error %}
{{error}}
{% else %}
{% translate 'No values or graph is not applicable here' %}
{% endif %} {% endblock %} {% block brick_script %} {% if data %} {% endif %} {% endblock %}