Add function option for chartlogic
Merge pull request #125 from cebor/patch-1

Add passing functions to charts