Added type to charts twig function