Public
Edited
Mar 22, 2023
2 forks
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
db2
SELECT *
FROM data
WHERE
(x >= 3 AND x <= 18 AND y >= -10 AND y <= 13
-- AND text LIKE '%vaccine%'
)
LIMIT 10000
Insert cell
Insert cell
db2
SELECT *
FROM data
WHERE (x >= 3 AND x <= 18 AND y >= -10 AND y <= 13 AND labels = ${topic_hl})
Insert cell
Insert cell
Insert cell
reset, chart.reset()
Insert cell
grid = (g, x, y) => g
.attr("stroke", "currentColor")
.attr("stroke-opacity", 0.1)
.call(g => g
.selectAll(".x")
.data(x.ticks(12))
.join(
enter => enter.append("line").attr("class", "x").attr("y2", height),
update => update,
exit => exit.remove()
)
.attr("x1", d => 0.5 + x(d))
.attr("x2", d => 0.5 + x(d)))
.call(g => g
.selectAll(".y")
.data(y.ticks(12 * k))
.join(
enter => enter.append("line").attr("class", "y").attr("x2", width),
update => update,
exit => exit.remove()
)
.attr("y1", d => 0.5 + y(d))
.attr("y2", d => 0.5 + y(d)));
Insert cell
k = height / width
Insert cell
height = 600
Insert cell
db2 = DuckDBClient.of({
data: FileAttachment("all-MiniLM-L6-v2_2023-03-21.parquet"),
})
Insert cell
extent_x = d3.extent(umap_embedding, d => d.x)
Insert cell
extent_y = d3.extent(umap_embedding, d => d.y)
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