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

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