Published
Edited
Jun 26, 2019
1 fork
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
d3.select('svg')
.append('g')
.selectAll('circle')
.data(data)
.enter()
.append('circle')
.attr('r', d => 10 * d[3] * d[3])
.attr('transform', d => 'translate('+ [ d[0], d[1] ] +')')
.attr('fill', d => {
//const found = diagram.find(d[0],d[1]) // ancienne implémentation
//return sites[found.index][2];
const found = delaunay.find(d[0],d[1]) // nouvelle implémentation
return sites[found][2]
})
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