Published
Edited
Oct 18, 2021
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
data = Object.assign(csv.filter(d => d.commodity === commodity).map(d => ({key: d.country, value: d.percentage_covered})).sort((a, b) => b.value - a.value), { x: "Percentage certified"})
Insert cell
margin = ({top: 30, right: 20, bottom: 20, left: 140})
Insert cell
import { chart } with { data, margin } from "@trase/horizontal-bar-chart@979"
Insert cell
import { select } from "@jashkenas/inputs"
Insert cell
csv = FileAttachment("eu_percentage_certified_imports@1.csv").csv({typed: true})
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