Verify that data is an object of x,y arrays. Throws an error if it's not.
data
Optional
Minimum length.
Verify that
data
is an object of x,y arrays. Throws an error if it's not.