{% extends 'base.html.twig' %} {% block body %}

STATISTIQUES

CADOLES
DEV
CSS
{% endblock %} {% block localjavascript %} $(document).ready(function() { graphCadoles(); graphDEV(); graphCSS(); }); function graphCadoles() { new Morris.Line({ element: 'chart-c', xkey: 'month', ymax: 350, ykeys: [ 'Total', {% for nature in tbnatures %} '{{ nature.name }}', {% endfor %} ], data: [ {% for month in tbmonths %} { month: '{{ month.name }}', {% for nature in month.natures %} {% if loop.first %} 'Total': {{ nature.totalmonth }}, {% endif %} '{{ nature.name }}': {{ nature.totalnature }}, {% endfor %} }, {% endfor %} ], labels: [ 'Total', {% for nature in tbnatures %} '{{ nature.name }}', {% endfor %} ] }); } function graphDEV() { new Morris.Line({ element: 'chart-1', xkey: 'month', ymax: 160, ykeys: [ 'Total', {% for nature in tbnatures %} '{{ nature.name }}', {% endfor %} ], data: [ {% for month in tbmonths %} { month: '{{ month.name }}', {% for nature in month.services[1].natures %} {% if loop.first %} 'Total': {{ nature.totalservice }}, {% endif %} '{{ nature.name }}': {{ nature.totalnature }}, {% endfor %} }, {% endfor %} ], labels: [ 'Total', {% for nature in tbnatures %} '{{ nature.name }}', {% endfor %} ] }); } function graphCSS() { new Morris.Line({ element: 'chart-3', xkey: 'month', ymax: 160, ykeys: [ 'Total', {% for nature in tbnatures %} '{{ nature.name }}', {% endfor %} ], data: [ {% for month in tbmonths %} { month: '{{ month.name }}', {% for nature in month.services[3].natures %} {% if loop.first %} 'Total': {{ nature.totalservice }}, {% endif %} '{{ nature.name }}': {{ nature.totalnature }}, {% endfor %} }, {% endfor %} ], labels: [ 'Total', {% for nature in tbnatures %} '{{ nature.name }}', {% endfor %} ] }); } {% endblock %} {% block localexternalscript %} {% endblock %}