Siva
Siva

Reputation: 1859

customizing d3.js brush as slider

I am trying to follow the below example http://bl.ocks.org/mbostock/6452972 and i ve not been very successful in understanding the specifics involved. Would be great if someone can help me in explaining where the co ordinates and size of the slider can be customized? ps I am new to d3 and javascript :(

Upvotes: 0

Views: 693

Answers (1)

Zoran
Zoran

Reputation: 1026

You can play with the size of the slider using the margin and size properties:

var margin = {top: 100, right: 50, bottom: 100, left: 50},
width = 460 - margin.left - margin.right,
height = 200 - margin.bottom - margin.top;

JSBin here

Upvotes: 1

Related Questions