Public
Edited
Sep 24, 2023
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
viewof recessionRate = Inputs.range([0.1, 0.5], {step: 0.05, value: 0.1, label: "Recession rate"})
Insert cell
Insert cell
Insert cell
viewof numberSelected = Inputs.range([1, 100], {step: 1, value: 1, label: "Number of duration"})
Insert cell
viewof durationSelected = Inputs.select(durationOptions, {value: "year", label: "Duration"})
Insert cell
import {chart as priceChart}
with {
dji as data,
recessionRate,
recoverRate,
consolidationRate,
numberSelected,
durationSelected
}
from "@chiahsun-ws/price-and-returns-chart"
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