Public
Edited
May 21, 2023
1 fork
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: "Gun Violence", to: "Violence", value: 2},
{from: "War", to: "Violence", value: 2},
{from: "Fighting", to: "Violence", value: 2},
{from: "Abuse", to: "Violence", value: 2},
{from: "Hate", to: "Violence", value: 2},
//{from: "Violence", to: "", value: 10},

{from: "Violence", to: "Problems", value: 2},
{from: "Violence", to: "Problems", value: 2},
{from: "Violence", to: "Problems", value: 2},
{from: "Violence", to: "Problems", value: 2},
{from: "Violence", to: "Problems", value: 2},

{from: "Problems", to: "Solutions", value: 2},
{from: "Problems", to: "Solutions", value: 2},
{from: "Problems", to: "Solutions", value: 2},
{from: "Problems", to: "Solutions", value: 2},
{from: "Problems", to: "Solutions", value: 2},
{from: "Solutions", to: "Love", value: 2},
{from: "Solutions", to: "Peace", value: 2},
{from: "Solutions", to: "Appreciation", value: 2},
{from: "Solutions", to: "Healing", value: 2},
{from: "Solutions", to: "Spirituality", 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