         return
 
       if @get('data') == null
-        # ToDo: Throw a resonable error here.
+        throw Error('If the x and y parameters are not specified as an array, the data parameter is reqired.')
         return
 
     # Stop processing this if the dirty flag is not set

  sort: (descending = false) ->
    # Verify that all necessary objects exist...
    if typeof(@get('x')) != typeof(@get('y'))
      # ToDo: Throw a resonable error here
      return

    if typeof(@get('x')) == 'object'
      if @get('x').length != @get('y').length
        # ToDo: Throw a resonable error here
        return
    else
      if @get('x').length == 0

_ = require "underscore"
Transform = require "./transform"
p = require "../../core/properties"
{logger} = require "../../core/logging"

class Interpolator extends Transform.Model

