Published
Edited
Jun 3, 2022
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
myData = FileAttachment("values-1.json").json()
Insert cell
Insert cell
import { chart as myHistogram } with { myData as data } from "@d3/histogram"
Insert cell
import { chart as myHistogram2 } with { myData as data } from "@d3/histogram@261"
Insert cell
Insert cell
myHistogram2
Insert cell
Insert cell
Insert cell
Insert cell
import { chart as pannableChart } with { temperatures as data } from "@d3/pannable-chart"
Insert cell
Insert cell
// ... import 'data_autoTyped' as 'temperatures_raw' from the 'Import and Parse Your Dataset' notebook.
Insert cell
Insert cell
import {Wrangler, op} from "@observablehq/data-wrangler"
Insert cell
Insert cell
temperature_raw = FileAttachment("temperature.csv").csv()
Insert cell
// To use copied code replace "data" with your own variable
temperatures = aq
.from(temperature_raw)
.derive({ temperature: (d) => +d.temperature })
.rename({ temperature: "value" })
.derive({ date: aq.escape((d) => new Date(d.date)) })
.objects()
Insert cell
// .. the column names shold be the same with the data that originally feeds to the imported chart
Insert cell
Insert cell
pannableChart
Insert cell
Insert cell
Insert cell
import {imageToDo} from "@clokman/student-blocks"
Insert cell
imageToDo
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