Added x and y functions to reactivis, modified scatter plot and bar chart to use them