Sets default values and binds needed functions to a chart object based on chart type.

prepareChart(chart)

Arguments

chart

chart object like the one generated by makeChartConfig().

Value

returns the chart object with a new functions object added.