Published
Edited
Sep 16, 2019
1 star
Insert cell
md`# d3-simple-slider`
Insert cell
slider()
.render()
Insert cell
function slider() {
return Object.assign(d3.sliderHorizontal()
.min(0)
.max(10)
.step(1)
.width(width)
.displayValue(false)
.on('onchange', console.log), {
render() {
return d3.create("svg")
.attr("viewBox", [-20, -10, width + 40, 53])
.call(this)
.node();
}
});
}
Insert cell
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more