类型不匹配。值(x)与列索引1

时间:2018-12-04 13:43:53

标签: javascript null google-visualization google-pie-chart

我有这样绘制的Google可视化饼图:

OIT_location_pie_chart1.setDataTable( google.visualization.data.group(
            // get the filtered results
            OIT_location_pie_chart.getDataTable(), [1], [{'column': 15, 'aggregation': google.visualization.data.sum, 'type': 'number'}] //problem at 'type': 'number'
            ));
            OIT_location_pie_chart1.draw();
      });

表中的某些列值在特定日期之后为空,因此如果用户尝试在该特定日期之后显示数据,则数据错误。

我该如何检查出现错误的行的数据类型并对其进行说明/忽略它们?

0 个答案:

没有答案
相关问题