switch chart functions to FunctionExpr