Data column(s) for axis #0 cannot be of type string error in google chart

后端 未结 5 1486
慢半拍i
慢半拍i 2021-01-05 20:29

I tried to populate google chart datatable in server side using PHP.I got JSON file properply, but the Chart not display in client Application. I got error-Data colu

5条回答
  •  暖寄归人
    2021-01-05 20:58

    If the Data format should be like:

    data: [
        ["string", "string"], //first Column
        ["string1", number],
        ["string2", number],
        ["string3", number],
    ]
    

    then you can overcome this error.

提交回复
热议问题