Public
Edited
Dec 6, 2022
Insert cell
Insert cell
data = FileAttachment("NBA_STATS.csv").csv({typed: true})
Insert cell
import {BarChart} from "@leibatt/bar-chart"
Insert cell
barchart = BarChart(data, {
x: d => d["Year"],
y: d => d["3PTA"],
title: undefined, // Changed for mouseOver Possibility.
xLabel: "Country",
yLabel: "Forested Area (% of land area)",
yDomain: [0, d3.max(data, function(d) { return d['3PTA']; })],
width: 1000,
height: 300,
marginBottom: 150,
marginRight: 150,
rotate: 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