Published
Edited
Nov 1, 2019
9 stars
Insert cell
Insert cell
Insert cell
d3 = require('d3@v5')
Insert cell
Insert cell
Insert cell
schemes = [d3.schemeBlues[7].reverse(),d3.schemeGreens[7].reverse(),d3.schemePurples[7].reverse(),d3.schemeReds[7].reverse(),d3.schemeOranges[7].reverse()]
Insert cell
totalTime = 50
Insert cell
world.forEach(w => {
let x = 0
w.counts = Array.from({length: totalTime + 1}, () => Math.floor(Math.random() * 100)).map(d => Math.random() > 0.9 ? d*4 : 0).map(d=>x+=d)
})
Insert cell
Insert cell
md`https://github.com/mustafasaifee42/Tile-Grid-Map`
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