Converts both x and y arrays to Float64Array if they are not already.
object containing x and y arrays.
data with x and y as Float64Array.
Converts both x and y arrays to Float64Array if they are not already.