我正在向 Dygraph 提供一些不错的 unix 纪元数据,它显示的轴如下所示:
经过一番摆弄后,我无法让它变得更简洁和动态调整。这是我的代码:
var graph = new Dygraph(
document.getElementById('plot' + formNum),
fileURL, // path to CSV file
{
legend:'always',
title: "Activity of " + station + ".BK." + fullChannel + dateString,
valueParser: function(x){
return x*1000;
},
ticker: Dygraph.dateTicker
}
它们为什么这么长?如何更改它们并仍然利用 Dygraph 的功能,根据时间间隔选择标签上的详细程度(即,一小时的数据中不列出月份)?
这是一些数据:
1420498200.06954,425
1420498201.06954,425
1420498202.06954,424
1420498203.06954,425
1420498204.06954,425
1420498205.06954,425
1420498206.06954,426
1420498207.06954,426
想法?