html`${[
Plot.plot({
height: 240,
y: {
grid: true,
label: "↑ Calories expended"
},
marks: [
Plot.ruleY([0]),
Plot.ruleX(fit, {x: "date", y: "cals", stroke: "steelblue"})
]
}),
htl.html`<p>`,
Plot.plot({
height: 240,
y: {
grid: true,
label: "↑ Time spent walking per day (hours)",
transform: d => d / (1000 * 60 * 60)
},
marks: [
Plot.ruleY([0]),
Plot.ruleX(fit, {x: "date", y: "walking", stroke: "brown"})
]
})
]}`