score:1

Accepted answer

Right now, your x is just a number:

finance.push({
    x: i,
    y: i
})

A possible solution (out of many) is turning it in an actual date:

finance.push({
    x: new Date().setMonth(i),
    y: i
})

Here is the updated fiddle: https://jsfiddle.net/2futpb98/


Related Query

More Query from same tag