How to customize “not enough columns given to draw the requested chart” message?

前端 未结 2 1625
后悔当初
后悔当初 2021-01-18 01:50

Is there any way to customize Google charts to prevent them from displaying this \'red\' message? E.g., silently drawing nothing instead?

2条回答
  •  抹茶落季
    2021-01-18 02:18

    you might miss to declare any variables . E.g var data i also got same error ,finally i found that i missed to declare data = google.visualization.arrayToDataTable(sourcedata); and i changed that as

    var data = google.visualization.arrayToDataTable(sourcedata);
    

提交回复
热议问题