Allow js functions in options to be passed as string
Allow overwriting of chart type from options