Translate d3.svg.brush code to d3-brush?
pjm17971 opened this issue · 2 comments
pjm17971 commented
Trying out the version of this library pushed to npm yesterday. My code, like most d3 brush code to control the time axis of a chart, looks more or less like this:
var timeScale = d3.time.scale()...
var brush = d3.svg.brush()
.x(timeScale)
.on("brush", brushed);
There doesn't seem to be an x(scale) method on brush anymore. Is there an example anywhere?
My actual code is here.
mbostock commented
I’m still working on it. I’ll post examples and documentation soon. Please be patient.
AjayDevJ commented
Any example posted on this? Any example two dimensional brush not with pixel value instead x y values??