@yo3dgjhcms-ro,
It seems like you are pushing wrong values to dps
. You need to use result[i].label and result[i].y instead of result[i].Time
and result[i].Ampere
respectively.
dps.push({"label":result[i].label, "y":result[i].y});
If this doesn’t solve your issue, kindly share sample data you are getting from database so that we can reproduce the issue you are facing at our end and help you with an appropriate solution.
—-
Manoj Mohan
Team CanvasJS