Public
Edited
Jan 31, 2023
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
<div id="method-1"></div>
Insert cell
{
d3.select("#method-1").append("span").text(count);
}
Insert cell
Insert cell
<div id="method-2"></div>
Insert cell
{
const div = d3.selectAll("#method-2");
div.selectAll("span").data([count]).join("span").text(count);
}
Insert cell
Insert cell
<div >
<span id="method-3"></span>
</div>
Insert cell
{
d3.select("#method-3").datum(count).text(count);
}
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