Public
Edited
Aug 28, 2024
14 stars
Insert cell
Insert cell
Insert cell
Type JavaScript, then Shift-Enter. Ctrl-space for more options. Arrow ↑/↓ to switch modes.

Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
ferment[0]
Insert cell
Insert cell
Insert cell
Insert cell
ferment[0]
Insert cell
kojiText = ferment[0].name === "Sagohachi"
? `You'll need about <span class="bold"> ${(
ferment[0].salt_avg * 100
).toFixed(
1
)}% </span> salt for the total weight of your <span class="bold">${ferment[0].name.toLowerCase()}</span> with a <span class="bold">salt : koji : substrate</span> ratio of 1 : <span class="bold"> ${
ferment[0].substrate_ratio
} </span>`
: ferment[0].name === "Shoyu Koji"
? `You'll need 3 parts koji : 2 parts soy sauce.`
: `You'll need about <span class="bold"> ${(
ferment[0].salt_avg * 100
).toFixed(
1
)}% </span> salt for the total weight of your <span class="bold">${ferment[0].name.toLowerCase()}</span> with a <span class="bold"> koji : substrate</span> ratio of <span class="bold"> 1 : ${
ferment[0].substrate_ratio
} </span>`
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
kojiData = fullData.filter((d) => d.koji_ratio)
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
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