enabled chartFn functionality