Published
Edited
Mar 25, 2022
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
mutable selection = []
Insert cell
Insert cell
taxForStock = incomes.map((income) => {
const rate = (15 + 15 * 0.021 + 5) * 0.01;
const tax = income * rate;
const taxRate = income > 0 ? tax / income : 0;
return {
income,
tax,
taxRate
};
})
Insert cell
Insert cell
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