Published
Edited
Apr 4, 2018
1 fork
1 star
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
rLineHeight = {
const max = d3.max(data, d => Math.abs(d.lineHeight));
return d3.scaleLinear()
.domain([max, -max])
.range([Math.min(x.bandwidth(), y.bandwidth())/2, 0]);
}
Insert cell
rSpacing = {
const max = d3.max(data, d => Math.abs(d.spacing));
return d3.scaleLinear()
.domain([max, -max])
.range([Math.min(x.bandwidth(), y.bandwidth())/2, 10]);
}
Insert cell
Insert cell
Insert cell
bgColorLineHeight = {
const max = d3.max(data, d => Math.abs(d.lineHeight));
return d3.scaleSequential(d3.interpolateWarm).domain([max, -max]);
}
Insert cell
bgColorSpacing = {
const max = d3.max(data, d => Math.abs(d.spacing));
return d3.scaleSequential(d3.interpolateCool).domain([max, -max]);
}
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
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