{% if tickets | length == 1 %}
{{ tickets | keys | last }}
{% endif %}
{% include 'statistique/chart/line.html.twig' with {d1 : tickets[2022],d1_label : 'Nombres' , label : 'Tickets' , id : 1, width : 100 , height : 50} %}
{% if caYear == null %}
{% set year = CA|keys|last %}
{% else %}
{% set year = caYear %}
{% endif %}
CA
{% set keys = CA | keys %}
{% set index = 1 %}
{% for item in keys %}
{% if item == year %}
{% set index = loop.index - 1 %}
{% endif %}
{% endfor %}
{% if index > 0 %}