Published
Edited
Jul 27, 2018
1 fork
Insert cell
Insert cell
Insert cell
Insert cell
x = d3.scaleBand()
// .domain(data.map(d => dateParse(d.date)))
.domain(ticks)
.range([margin.left, width - margin.right])
.padding(.15)
Insert cell
Insert cell
Insert cell
Insert cell
xAxis = g => g
.attr("transform", `translate(0,${height - margin.bottom})`)
.attr("class", "x axis")
.call(d3.axisBottom(x)
.tickValues(ticks)
.tickFormat(d3.timeFormat("%b %d")))
.style("fill", "#9eaab2")

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