Public
Edited
Oct 2, 2023
3 forks
4 stars
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
viewof smoothing = Inputs.range([1, 21], {label: "Smoothing", step: 1})
Insert cell
Plot.plot({
marks: [
Plot.ruleY([0]),
Plot.lineY(aapl, Plot.windowY({x: "Date", y: "Close", k: smoothing, reduce: "mean"}))
]
})
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
A mortgage for a house purchased for **${formatMoney(amount)}** at an interest rate of **${interest}%** over **${duration} years** costs a total of **${formatMoney(amount * (1+interest/100) ** duration)}**
Insert cell
<p>We can also use variables within HTML tags, however, for example to change <span style="color:${color}; font-weight:${weight};font-style:${italics}">this text to be styled differently and have different colors</span>. You can change it with the controls below!</p>
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
## Backticks for cell modes
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell

One platform to build and deploy the best data apps

Experiment and prototype by building visualizations in live JavaScript notebooks. Collaborate with your team and decide which concepts to build out.
Use Observable Framework to build data apps locally. Use data loaders to build in any language or library, including Python, SQL, and R.
Seamlessly deploy to Observable. Test before you ship, use automatic deploy-on-commit, and ensure your projects are always up-to-date.
Learn more