Published
Edited
Apr 24, 2022
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
chart = {

const losDivs = d3.select("#main").selectAll("div").datum(function (d) {
return {
nombre: d3.select(this).attr("id")
};
});
losDivs.data(data, function (d, i) {
return d.nombre;
});
}
Insert cell
Insert cell
d3.select("#main").selectAll("div")
.style("color", "blue")
.html(d=>d.datos);
Insert cell
Data binding to existing DOM objects.
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