You might change the Object to : encoding: {
x: { field: 'x' , type: "quantitative"},
y: { field: 'y' , type: "quantitative"}, to match the above cell. Here the fields are treated as nominal by default, hence the different sorting and the axis labels