Published
Edited
Feb 5, 2021
2 forks
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
x = d => Number(d[value])
Insert cell
y = d => d.Country
Insert cell
Insert cell
xScale = d3.scaleLinear().domain([0, d3.max(data, x)]).range([0, chartWidth])
Insert cell
yScale = d3.scaleBand().domain(data.map(y)).range([0, chartHeight]).padding(.05)
Insert cell
colorScale = d3.scaleLinear().domain([0, d3.max(data, x)]).range([0,1])
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