Check that the right dataseries type was supplied.