Public
Edited
Dec 10, 2022
Insert cell
Insert cell
power_vs_temperature
Insert cell
viewof measure = Inputs.select(["temperature", "power"], {label: "Measure"})
Insert cell
viewof k = Inputs.range([1, 20], {label: "Smoothing", step: 1})
Insert cell
Plot.plot({
marks: [
Plot.dot(power_vs_temperature, {x: "temperature", y: "power", fill: "city"})
],
color: {
domain: ["Seattle", "Los Angeles"],
legend: true
},
marginLeft: 50
})
Insert cell
LineChart = Plot.plot({
marks: [
Plot.ruleY([0]),
Plot.lineY(power_vs_temperature, {x: "date", y: measure, stroke: "city"})
],
color: {domain:["Seattle", "Los Angeles"], legend: true},
marginLeft: 50
})
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
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