d3.js - add a drag behaviour on a cubism graph -


cubism.js meant realtime vizualizations, not interaction, yet trying able visualize large dataset (for example >> 1000points) on page, without increasing step or chunking data

example: http://jsfiddle.net/b2wjm/4/ (the first 500 points of 4000 points dataset drawn)

var context = cubism.context()     .step(6e4)     .size(500)     .stop(); 

so idea drag, or zoom graph using d3 https://github.com/mbostock/d3/wiki/zoom-behavior, hoping there's nice solution possible changing dynamically start , stop attributes

i wanted show stock data described here 3 pieces. split graph 3 , added carousel-like left/right button toggle between them.

i think can split data 5 pieces of 800 px each can move using left/right buttons.


Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

Function that returns a formatted array in VBA -