以下文档使我的代码看起来应该可以工作,但是我遇到了一个未定义的错误,我确信这很简单,但我无法完全理解它。
https://github.com/keen/keen-js/blob/master/docs/visualization.md#automatic-updates
var clicks_keen = new Keen.Query("count", {
eventCollection: "clicks",
groupBy: "campaign.id",
interval: window.interval,
timeframe: window.timeframe
});
clicks_keen.refresh();