Public
Edited
Sep 29, 2023
Insert cell
Insert cell
Insert cell
employee_churn_data
Type Table, then Shift-Enter. Ctrl-space for more options.

Insert cell
employee_churn_data
select department, "left", count(*) as cant from employee_churn_data group by 1,2;
Insert cell
Plot.plot({
marginLeft: 100,
marks: [
Plot.barX(left_by_depto, {
x: "cant",
y: "department",
fill: "left",
sort: { y: "x", reverse: true }
}),
Plot.ruleX([0])
]
})
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
employee_churn_data = d3.csv(
"https://raw.githubusercontent.com/aaizemberg/vis/gh-pages/dpa/employee_churn_data.csv",
d3.autoType
)
Insert cell
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