Added Twig chart function