Change scale default in cubism.js

拈花ヽ惹草 提交于 2019-12-01 22:11:05

The stocks demo from the intro talk does almost exactly this, using serverDelay to shift the displayed time window and stop to prevent updates:

var context = cubism.context()
    .serverDelay(new Date(2012, 4, 2) - Date.now())
    .step(864e5)
    .size(1280)
    .stop();

I think the API could be made more convenient to handle this specific case, but Cubism is designed primarily for real-time displays.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!