d3.js - Change scale default in cubism.js -
i'm using cubism.js graph static data json object. want able display years worth of data, point each day. have solution working partially i'd able set scale independent of today's date, i.e. i'd graph data yesterday corresponding day last year. i've tried following without success:
context.scale(d3.time.scale().domain([start, end]).range([0,96]))
where start , end come json object. possible set cubism scale behave in way ?
many thanks,
michael
the stocks demo intro talk this, using serverdelay shift displayed time window , stop prevent updates:
var context = cubism.context() .serverdelay(new date(2012, 4, 2) - date.now()) .step(864e5) .size(1280) .stop();
i think api made more convenient handle specific case, cubism designed real-time displays.
Comments
Post a Comment