23.09.2022, 12:12
This means that your data is not a plain array of numbers. If each array item is an object containing value field then the data conversion should be like this:
Code:
for (var i = 0; i < data.length; i++) {
data[ i ] = data[ i ].value / 1000;
}