score:0

i was not creating the var properly. i created the var as:

var xaxis = "";
var yaxis = "";

and manually added the []. so i changed this to:

var xaxis = [];
var yaxis = [];

and just added the elements:

xaxis[i] = "'" + this.pedetdate + "'";
yaxis[i] = this.pedetresult;

Related Query

More Query from same tag