Thursday, 15 September 2011

d3.js - Extend data to extent of graph -



d3.js - Extend data to extent of graph -

i have time-sensitive info ranges until 7 days hourly resolution ~220 values. able them plot next mike bostock's demo here: http://bost.ocks.org/mike/cubism/intro/demo-stocks.html

but can't seem find how extend timescales , info span across entire display. looking extent argument or xrange or width, haven't had luck. i'm sure reply trivial, can't seem find it.

var context = cubism.context() .step(3600000) // <-- changes time resolution .size(1280) // <-- changes width .stop();

also, d3.time.scale.domain seems undefined in d3.v3.min.js.

here's fiddle shows code looks (because it's calling d3.csv wasn't sure how working in fiddle...so included csv file below javascript.) : http://jsfiddle.net/oay7tvq0/

i think cubism uses single pixel each time slice, if you've got 220 timesteps 220 pixels needed. check documentation sure. if i'm right you'll either have creative timeseries , extend timestep (by repeating adjacent records) or perhaps d3 (or 1 of various libraries built on it) improve suit purposes. – user1614080

this i'm sure answer...

d3.js cubism.js

No comments:

Post a Comment