I have an array and the second column with values like this 2050.878456
and inside my javascript function to create a Area Chart I made the following
I spotted the same issue.
not working:
data.addRow([v, obd[v].engine_rpm]);
working:
data.addRow([v, Number(obd[v].engine_rpm)]);
Try passing the Value
as string
and then later do a parseFloat
. Something like this:
data.addColumn('string', 'Value');
for (var i=0;i<myArrayCreated.length;i++){
myVal = parseFloat($.trim(myArrayCreated[i][1]));
data.addRow([i, {v: myVal, f: myval.toFixed(6)}]);
}