Public
Edited
Mar 2, 2023
1 star
Insert cell
Insert cell
Insert cell
data = d3.csvParse(await FileAttachment("reasonsWhyPeopleDiscardGarment.csv").text(), d3.autoType)
Insert cell
Insert cell
Insert cell
color.range()
Insert cell
x = d3.scaleLinear([0, 1], [margin.left, width - margin.right])
Insert cell
formatPercent = x.tickFormat(null, "%")
Insert cell
width = 964
Insert cell
height = 66
Insert cell
margin = ({top: 0, right: 0, bottom: 0, left: 0})
Insert cell
d3 = require("d3@6")
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