Wrong hoverinfo

So I have a trace like this,

    var points_new = {
        x: [1,2,3],
        y: [1,2,3], 
        type: 'scatter',
        cliponaxis: false,
        mode: 'markers+lines',
        marker: {
            symbol: "circle-dot",
            color: '#b00'
            },
        line: {
            width: 2,
            color: "#1e77b4",
        },
        hoverinfo: 'x+y',
    };

But on plotting the hoverinfo showing only y value on point and x value on corresponding value on x axis . I want the hoverinfo as (x,y). How do I do that?

You’ll need to set layout.hovermode: 'closest'.

More info: