Public
Edited
Jan 25, 2024
Importers
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
colorType = d3.scaleOrdinal()
.range(['#F64C27','#8B80F9'])
.domain(['Important','Missing'])
Insert cell
Insert cell
Insert cell
ManualBert_words@3.csv
Type Table, then Shift-Enter. Ctrl-space for more options.

Insert cell
titleData = dataRow.filter(function(d){ return d.Topic == "-1"})
Insert cell
data = dataRow.filter(function(d){ return d.Topic != "-1"})
Insert cell
width = d3.sum(data, d=>d.width)+"px"
Insert cell
Insert cell
Insert cell
parseFont = selectedFont.split(" ").join("+")
Insert cell
html`
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=${parseFont}:ital@0;1&display=swap">

<style>
body, svg {
font-family: '${selectedFont}', serif;
/* font-size: 48px; */
}
</style>
`
Insert cell
x = d3.scaleLinear()
.domain([d3.min(data, d=>d.x),d3.max(data, d=>d.x)])
Insert cell
y = d3.scaleLinear()
.domain([d3.min(data, d=>d.width),d3.max(data, d=>d.width)])
Insert cell
import { swatches } from "@d3/color-legend"
Insert cell
d3 = require("d3@5")
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