score:1

Accepted answer

The problem was that the y values were strings. I changed

monthlyData.push({x: data[i].Month, y: data[i].Data});

to

monthlyData.push({x: data[i].Month, y: +data[i].Data});

so that the y value becomes a number. Here's the updated version.


Related Query

More Query from same tag