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