Add passing functions to charts