错误:第 0 列不是数字第 0 列是我的日期列
data.addColumn('date', 'Date');
...
// The variable date here is an epoch
var fullDate = new Date((parseInt(date)*1000));
r.push(new Date(fullDate.getYear(), fullDate.getMonth(), fullDate.getDay()));
// Logging r here yields: Mon Mar 06 113 00:00:00 GMT+1100 (EST)
...
var slider = new google.visualization.ControlWrapper({
'controlType': 'NumberRangeFilter',
'containerId': 'control1',
'options': {
'filterColumnLabel': 'Date',
'ui': {'labelStacking': 'vertical'}
}
});
我想我需要找到一种方法来使日期数字化?