data_points must be array of objects. So, each element inside an array must be an object.
y value should be an array of 4 values not just comma separated value.
Also, try with following things and check if there is some error:
-> echo $result and see if it is returning a value from DB
-> echo $data_points to check if you have the value in prescribed format.