{% extends 'base.html' %} {% load static mep_tags %} {% load render_bundle from webpack_loader %} {% block page-subtitle %}Graphs · Library Members · {% endblock %} {% block js %} {% endblock %} {% block header %} {% include 'snippets/header.html' with title='Membership Graphs' style="detail" %} {% endblock %} {% block main-style %}tabbed white{% endblock %} {% block content %}

Members

{% for year in tabular_data.years %} {% with values=tabular_data.logbooks|dict_item:year %} {% for count in values %} {% endfor %} {% endwith %} {% endfor %}
Totals by month: members with subscriptions
Year Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec Min Max Avg
{{ year }}{{ count }}{{ values|min|floatformat:2 }} {{ values|max|floatformat:2 }} {{ values|avg|floatformat:2 }}

Members with book activity

{% for year in tabular_data.years %} {% with values=tabular_data.cards|dict_item:year %} {% for count in values %} {% endfor %} {% endwith %} {% endfor %}
Totals by month: members with book activity
Year Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec Min Max Avg
{{ year }}{{ count }}{{ values|min|floatformat:2 }} {{ values|max|floatformat:2 }} {{ values|avg|floatformat:2 }}

Subscriptions and book activity together

Subscriptions, book activity, and total number of members

{% for year in tabular_data.years %} {% with values=tabular_data.card_percents|dict_item:year %} {% for count in values %} {% endfor %} {% endwith %} {% endfor %}
Percentage by month: members with book activity against total known members
Year Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec Min Max Avg
{{ year }}{{ count|floatformat:2 }}{{ values|min|floatformat:2 }} {{ values|max|floatformat:2 }} {{ values|avg|floatformat:2 }}

{{ data|json_script:"membership-data"}} {# load the membership graph bundle, which will render based on data-series #} {% render_bundle 'membershipGraphs' %} {% endblock %}