Datetime 谷歌图表数字日期
错误:列0不是数字 列0是我的日期列Datetime 谷歌图表数字日期,datetime,user-controls,slider,filtering,google-visualization,Datetime,User Controls,Slider,Filtering,Google Visualization,错误:列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 M
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'}
}
});
我想我需要找到一种使日期数字化的方法?另一种解决方案是改变滑块的控制类型,而不是使日期数字化
'controlType': 'ChartRangeFilter',
另一个解决方案是更改滑块的控制类型,而不是使日期为数字
'controlType': 'ChartRangeFilter',