Published
Edited
Jun 5, 2020
Insert cell
Insert cell
breaking_example = d3.csvParse((await FileAttachment("example.csv").text())
.replaceAll("letter","l")
.replaceAll("frequency","f"), d3.autoType)
Insert cell
working_example = d3.csvParse((await FileAttachment("example.csv").text())
.replace(/letter/gi,"l")
.replace(/frequency/gi,"f"), d3.autoType)
Insert cell
"foo bar foo bar foo bar".replaceAll("foo", "monkey")
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