Ensure x values are unique
Object that contains property x (Array) and y (Array)
Object containing a property algorithm (can be 'sum' or 'average', the latter being the default value), and a property isSorted (boolean indicating if the x-array is sorted).
Ensure x values are unique