Published
Edited
Apr 9, 2020
Insert cell
Insert cell
// Import the chart *and* functions for passing data to the chart
import { chart, dataAt, curr_date } from "@yy/covid-19-fatality-rate"
Insert cell
// Display the chart
chart
Insert cell
// Update the chart with the data at a selected date (this is what renders the data and interactions)
chart.update(dataAt(curr_date))
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