Public
Edited
May 22, 2023
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
inputData = {

// Set data
// https://www.amcharts.com/docs/v5/charts/flow-charts/#Setting_data

let exampleData = [
{from: "Sheep", to: "full-fat", value: 2},
{from: "Goat", to: "full-fat", value: 2},
{from: "Cow", to: "full-fat", value: 2},
{from: "Cow", to: "skimmed", value: 4},
//{from: "Violence", to: "", value: 10},

{from: "full-fat", to: "not boiled", value: 6},
{from: "skimmed", to: "not boiled", value: 2},
{from: "skimmed", to: "boiled", value: 2},
{from: "boiled", to: "cultures", value: 2},
{from: "not boiled", to: "cultures", value: 8},
{from: "cultures", to: "kefir grains", value: 2},

{from: "kefir grains", to: "fermentation 12h-24h", value: 2},
{from: "cultures", to: "fermentation 24h-30h", value: 2},
{from: "cultures", to: "fermentation 12h-24h", value: 2},
{from: "fermentation 12h-24h", to: "Not Strained", value: 2},
{from: "fermentation 12h-24h", to: "Strained", value: 2},
{from: "fermentation 24h-30h", to: "Strained", value: 2},
{from: "fermentation 24h-30h", to: "Not Strained", value: 2},

{from: "Not Strained", to: "Kefir", value: 2},
{from: "Not Strained", to: "Generic Yogurt", value: 2},
{from: "Strained", to: "Skyr", value: 2},
{from: "Strained", to: "Lebneh", value: 2},
{from: "Strained", to: "Greek Yogurt", value: 2},
]

return exampleData;
}
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