{% extends "box.html" %} {% block box_content %} {% import "widgets/list.html" as list %} {% import "widgets/statistics.html" as stat %} {% set mode=PARAMS.get('mode', 'full') %} {% if mode=='simple' and 'init_params' in PARAMS %} {% set init_params=PARAMS.get('init_params') | url2obj %} {% else %} {% set init_params={} %} {% endif %}

{{ gettext('Statistics of %s')%MODEL._meta.verbose_name }}

{% if mode!='full' %}
{% endif %}
{% if mode=='full' %}
{% endif %}
{{ stat.histogramchart(MODEL.__name__ + "_hg_" + uuid4()|jsvar, MODEL, 'js_hook', '', True, { 'seriesColors': ["#0000ff", "#e1b93f", "#1e8fc6", "#e95d47", "#ddddcc"], 'seriesDefaults':{'lineWidth':1.5,'fillColor':'#00cc00','fillAlpha':0.9}, 'grid':{'background':'transparent','borderColor':'#000','borderWidth':1} }, with_control=True if mode=='full' else False, init_params=init_params) }}
{% if mode=='full' %} {% endif %}
{% endblock %} {% block box_script %} {% set mode=PARAMS.get('mode', 'full') %} {% if 0 %} {% endif %} {% endblock %}