add twig function for bar chart url