Type mismatch for number in Google Chart API

后端 未结 2 1887
一生所求
一生所求 2021-01-18 00:40

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

         


        
2条回答
  •  情话喂你
    2021-01-18 00:57

    I spotted the same issue.

    not working:

    data.addRow([v, obd[v].engine_rpm]);
    

    working:

    data.addRow([v, Number(obd[v].engine_rpm)]);
    

提交回复
热议问题