Published
Edited
Fork of Untitled
Insert cell
Insert cell
Insert cell
legend=swatches({
color: d3.scaleOrdinal(["0","1", "2", "3 goals and assists"], colors)
})
Insert cell
colors = ["#2C3435", chroma('skyblue').darken(2).hex(), chroma('skyblue').darken(0.5).hex(),chroma('skyblue').brighten().hex()]
Insert cell
import {swatches} from "@d3/color-legend"
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
days("2017-08-13")
Insert cell
one = width/100
Insert cell
Insert cell
Insert cell
formatY = d3.timeFormat("%Y")
Insert cell
function days(date) {
return format(parseTime(date))
}
Insert cell
function year(date) {
return formatY(parseTime(date))
}
Insert cell
dataNew = data2.concat(data3);
Insert cell
dataDex = indexData(dataNew)
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
chroma('hotpink').darken(2.6).hex()
Insert cell
Insert cell
Insert cell
heit = width/2
Insert cell
wid = width/1.2
Insert cell
Insert cell
Insert cell
Insert cell

One platform to build and deploy the best data apps

Experiment and prototype by building visualizations in live JavaScript notebooks. Collaborate with your team and decide which concepts to build out.
Use Observable Framework to build data apps locally. Use data loaders to build in any language or library, including Python, SQL, and R.
Seamlessly deploy to Observable. Test before you ship, use automatic deploy-on-commit, and ensure your projects are always up-to-date.
Learn more