Published
Edited
Sep 27, 2021
Importers
1 star
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
powPack
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
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
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
import {chart as genderPie} from "0f759d70a4d04995"
Insert cell
import {chart as genderGraph, key as genderKey} from "b85280f9512d455f"
Insert cell
import {chart as licensePie} with {licenseData as data} from "f84de83a7892c888"
Insert cell
import {keys as pcmTimelineLegend, beeswarm as pcmTimeline} from "@99percentcocoa/timeline-beeswarm"
Insert cell
import {chart as powCircle} with {powData as data} from "@d3/zoomable-circle-packing"
Insert cell
import {chart as powPack} with {powData2 as json} from "0df810095caea49e"
Insert cell
import {chart as languageWordCloud} with {powLanguageData as data} from "@d3/word-cloud"
Insert cell
import {chart as powHistogram} with {powEstablishment as data} from "@d3/histogram"
Insert cell
import {chart as wordCloud} with {subdomsArray as words} from "@d3/word-cloud"
Insert cell
import {chart as wmGenreWordCloud} with {wmGenreData as data} from "@d3/word-cloud"
Insert cell
import {chart as dsDendro} with {dsJson as data} from "@d3/cluster-dendrogram"
Insert cell
import {chart as msmGroupChart} with {msmGroupArray as data} from "@d3/bubble-chart"
Insert cell
import {chart as danceGenreChart} with {danceGenreArray as data} from "e584068195c47a88"
Insert cell
import {chart as hmGharanaBubble} with {hmGharanaRaw as data} from "0df810095caea49e"
Insert cell
import {chart as eriTypeBubble} with {eriData as data, eriBubbleHeight as height} from "0df810095caea49e"
Insert cell
import {cultWordCloud, instrumentWordCloud, religionCultChart, festivalsBubble, musicChart, renderTangledChart, musicTangledData} from "2001e2a5070f4795"
Insert cell
eriBubbleHeight = 200
Insert cell
import {mapLegend as hmNetworkColor, chart as hmNetworkChart} from "cf70a879834aad03"
Insert cell
import {chart as treesNative} with {treesNativeArray as data} from "@d3/pie-chart"
Insert cell
import {chart as categoryBubble} with {bpdpCategoryData as data} from "0df810095caea49e"
Insert cell
import {finalChart as bpDpTimeline} from "18773b47632ac4e0"
Insert cell
import {chart as marketsWordCloud} with {marketsArray as data} from "@d3/word-cloud"
Insert cell
import {
toggle as powTimelineToggle,
chart as powTimeline
} from "fd6ae713f53474c9"
Insert cell
licenseData = d3.tsv("https://docs.google.com/spreadsheets/d/e/2PACX-1vSzfkQQjNKFYV9fZe1YdXN1rxTVVOD3250DjaGkS2pgsl2L5zmLKKOTDjYcR7uHTi4PvMWVAPCAh704/pub?gid=1857798329&single=true&output=tsv")
Insert cell
teamLocationArray = d3.tsv("https://docs.google.com/spreadsheets/d/e/2PACX-1vSzfkQQjNKFYV9fZe1YdXN1rxTVVOD3250DjaGkS2pgsl2L5zmLKKOTDjYcR7uHTi4PvMWVAPCAh704/pub?gid=632791702&single=true&output=tsv")
Insert cell
subdomsArray = []
Insert cell
subdomains = await d3.tsv("https://docs.google.com/spreadsheets/d/e/2PACX-1vSzfkQQjNKFYV9fZe1YdXN1rxTVVOD3250DjaGkS2pgsl2L5zmLKKOTDjYcR7uHTi4PvMWVAPCAh704/pub?gid=1082614223&single=true&output=tsv", (d) => {
subdomsArray.push(...d["Subdomain(s)"].trim().split(" + "));
})
Insert cell
dsArray = d3.tsv("https://docs.google.com/spreadsheets/d/e/2PACX-1vSzfkQQjNKFYV9fZe1YdXN1rxTVVOD3250DjaGkS2pgsl2L5zmLKKOTDjYcR7uHTi4PvMWVAPCAh704/pub?gid=1624920812&single=true&output=tsv")
Insert cell
d3hier = require("d3-hierarchy@2")
Insert cell
dsStrat = stratify(dsArray)
Insert cell
dsJson = hierarchyToJson(dsStrat)
Insert cell
eriData = d3.tsv("https://docs.google.com/spreadsheets/d/e/2PACX-1vSzfkQQjNKFYV9fZe1YdXN1rxTVVOD3250DjaGkS2pgsl2L5zmLKKOTDjYcR7uHTi4PvMWVAPCAh704/pub?gid=788876790&single=true&output=tsv")
Insert cell
powArray = d3.tsv("https://docs.google.com/spreadsheets/d/e/2PACX-1vSzfkQQjNKFYV9fZe1YdXN1rxTVVOD3250DjaGkS2pgsl2L5zmLKKOTDjYcR7uHTi4PvMWVAPCAh704/pub?gid=968147901&single=true&output=tsv")
Insert cell
powArray2 = powArray.filter(obj => obj.parent == "Hinduism" || obj.parent == "Religion" || obj.parent == "Philosophical cults" || obj.parent == "")
Insert cell
powStrat = d3
.stratify()
.id(d => d.child)
.parentId(d => d.parent)(powArray)
Insert cell
powStrat2 = d3
.stratify()
.id(d => d.child)
.parentId(d => d.parent)(powArray2)
Insert cell
deitiesArray = powArray.map(d => {
return d["child"];
})
Insert cell
powData = hierarchyToJson(powStrat)
Insert cell
powData2 = hierarchyToJson(powStrat2)
Insert cell
powLanguageData = d3.tsv("https://docs.google.com/spreadsheets/d/e/2PACX-1vSzfkQQjNKFYV9fZe1YdXN1rxTVVOD3250DjaGkS2pgsl2L5zmLKKOTDjYcR7uHTi4PvMWVAPCAh704/pub?gid=725598043&single=true&output=tsv")
Insert cell
powEstablishment = d3.tsv("https://docs.google.com/spreadsheets/d/e/2PACX-1vSzfkQQjNKFYV9fZe1YdXN1rxTVVOD3250DjaGkS2pgsl2L5zmLKKOTDjYcR7uHTi4PvMWVAPCAh704/pub?gid=320452809&single=true&output=tsv", (d) => {return parseInt(d.Year)})
Insert cell
msmGroupArray = d3.tsv("https://docs.google.com/spreadsheets/d/e/2PACX-1vSzfkQQjNKFYV9fZe1YdXN1rxTVVOD3250DjaGkS2pgsl2L5zmLKKOTDjYcR7uHTi4PvMWVAPCAh704/pub?gid=1032910119&single=true&output=tsv", (d) => {
return {
name: d.name,
group: d.name,
value: d.value
}
})
Insert cell
Insert cell
tagsArray = d3.tsv("https://docs.google.com/spreadsheets/d/e/2PACX-1vSzfkQQjNKFYV9fZe1YdXN1rxTVVOD3250DjaGkS2pgsl2L5zmLKKOTDjYcR7uHTi4PvMWVAPCAh704/pub?gid=190631094&single=true&output=tsv")
Insert cell
hmBirthLocArray = d3.tsv("https://docs.google.com/spreadsheets/d/e/2PACX-1vSzfkQQjNKFYV9fZe1YdXN1rxTVVOD3250DjaGkS2pgsl2L5zmLKKOTDjYcR7uHTi4PvMWVAPCAh704/pub?gid=165743166&single=true&output=tsv")
Insert cell
hmGharanaRaw = d3.tsv("https://docs.google.com/spreadsheets/d/e/2PACX-1vSzfkQQjNKFYV9fZe1YdXN1rxTVVOD3250DjaGkS2pgsl2L5zmLKKOTDjYcR7uHTi4PvMWVAPCAh704/pub?gid=1503135776&single=true&output=tsv")
Insert cell
wmGenreData = d3.tsv("https://docs.google.com/spreadsheets/d/e/2PACX-1vSzfkQQjNKFYV9fZe1YdXN1rxTVVOD3250DjaGkS2pgsl2L5zmLKKOTDjYcR7uHTi4PvMWVAPCAh704/pub?gid=740179410&single=true&output=tsv")
Insert cell
foodCommOriginArray = d3.tsv("https://docs.google.com/spreadsheets/d/e/2PACX-1vSzfkQQjNKFYV9fZe1YdXN1rxTVVOD3250DjaGkS2pgsl2L5zmLKKOTDjYcR7uHTi4PvMWVAPCAh704/pub?gid=0&single=true&output=tsv")
Insert cell
treesOriginArray = d3.tsv("https://docs.google.com/spreadsheets/d/e/2PACX-1vSzfkQQjNKFYV9fZe1YdXN1rxTVVOD3250DjaGkS2pgsl2L5zmLKKOTDjYcR7uHTi4PvMWVAPCAh704/pub?gid=343721060&single=true&output=tsv")
Insert cell
treesNativeArray = d3.tsv("https://docs.google.com/spreadsheets/d/e/2PACX-1vSzfkQQjNKFYV9fZe1YdXN1rxTVVOD3250DjaGkS2pgsl2L5zmLKKOTDjYcR7uHTi4PvMWVAPCAh704/pub?gid=383359304&single=true&output=tsv")
Insert cell
bpdpCategoryData = d3.tsv("https://docs.google.com/spreadsheets/d/e/2PACX-1vSzfkQQjNKFYV9fZe1YdXN1rxTVVOD3250DjaGkS2pgsl2L5zmLKKOTDjYcR7uHTi4PvMWVAPCAh704/pub?gid=1081802470&single=true&output=tsv")
Insert cell
import {chart as bpdpHistogram} with {bpdpTimeArr as data} from "@d3/histogram"
Insert cell
bpdpTimeArr = d3.tsv("https://docs.google.com/spreadsheets/d/e/2PACX-1vSzfkQQjNKFYV9fZe1YdXN1rxTVVOD3250DjaGkS2pgsl2L5zmLKKOTDjYcR7uHTi4PvMWVAPCAh704/pub?gid=1290885354&single=true&output=tsv", (d) => {
return parseInt(d.year)
})
Insert cell
marketsArray = ["Produce", "Wood", "Pottery", "Books", "Bangles", "Bamboo", "Textiles", "Antiques", "Hardware", "Jewellery", "Electronics", "Perfumes", "Accessories", "Automotive", "Copper Articles", "Scrap"].map(d => {
return {
text: d,
value: Math.floor(Math.random()*40)
}
})
Insert cell
Insert cell
d3dsv = require('d3-dsv')
Insert cell
L = {
const L = await require("leaflet@1/dist/leaflet.js");
if (!L._style) {
const href = await require.resolve("leaflet@1/dist/leaflet.css");
document.head.appendChild(L._style = html`<link href=${href} rel=stylesheet>`);
}
return L;
}
Insert cell
function hierarchyToJson(root) {
const obj = { name: root.id };
if (root.children) obj.children = root.children.map(hierarchyToJson);
if (root.data && root.data.value) obj.value = root.data.value;
return obj;
}
Insert cell
import {logging} from "@kalmdown/altocumuluss-logging"
Insert cell
d3hierarchy = require('d3-hierarchy@2')
Insert cell
stratify = d3.stratify()
.id(d => d["Child"])
.parentId(d => d["Parent"])
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