{% extends 'base.html.twig' %} {% block title %}Diagramme - {{ sheetName }}{% endblock %} {% block content %}
📊 Diagramme - {{ sheetName }}
Type: {{ chartType }} | Données: {{ dataSource }}
📈 Statistiques détaillées
Transactions totales
{{ statistics.totalTransactions }}
Quantité totale
{{ statistics.totalQuantity }}
Catégories
{% if dataSource == 'workType' %} {{ statistics.byWorkType|length }} {% elseif dataSource == 'product' %} {{ statistics.byProduct|length }} {% else %} - {% endif %}
Moyenne
{% if dataSource == 'workType' and statistics.byWorkType %} {% set counts = statistics.byWorkType|map(attribute='count') %} {% set avg = (counts|sum) / (counts|length) %} {{ (avg|round(1)) }} {% else %} - {% endif %}
{% endblock %}