Published
Edited
Feb 7, 2018
1 fork
Insert cell
Insert cell
{
const scaleLinear = d3.scaleLinear().domain([0, 45646]).range([0,100]);
const scaleLog = d3.scaleLog().domain([1,45646]).range([0,100]);
return {linear: scaleLinear(54), log: scaleLog(54)}
}
Insert cell
Insert cell
Math.log(54) / Math.log(45646)
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