Public
Edited
May 28
1 fork
Insert cell
Insert cell
Insert cell
d3 = require("d3@7")
Insert cell
{
window.d3 = d3
}
Insert cell
Insert cell
path = "https://docs.google.com/spreadsheets/d/e/2PACX-1vQlrumOCVwfBfkZYAXMo66cnGRqzPBo4Ni6Svt89CgSeXAVKD_SymIMzHyBmP8KR6yEK5zd5qtBuSFp/pub?output=csv"
Insert cell
Insert cell
imgUrl = "https://lh3.googleusercontent.com/d/"
Insert cell
Insert cell
csvString = fetch(path).then((response) => response.text())
Insert cell
Insert cell
dataJ = d3.csvParse(csvString, d3.autoType)

Insert cell
Insert cell
tabla = Inputs.table(dataJ)
Insert cell
Insert cell
Insert cell
Aventura = (await import(await FileAttachment("aventura-2.js").url())).default

Insert cell
Insert cell
aventura = new Aventura("es", {

adventureSlide: true,
typewriterSpeed: 50,
evalTags: true,
vizImageSize: 70,
urlWord: "CONT",
vizWidth: 1000,
vizHeight: 1000,
contenedorAventura: "contenedor-panel"
})
Insert cell
Insert cell
escenas = ({

"inicio": {
"titulo": "Comparar",
"texto": "Comparación",
"viz": {"filter":[[]], "type": "pack", "x": "conflicto" , "y": "año"},
}
})


Insert cell
escenas1 = ({

"inicio": {
"titulo": "Comparar",
"texto": "Comparación",
"viz": {"filter":[[]], "type": "compare", "x": "9" , "y": "5"},
}
})


Insert cell
Insert cell
await aventura.fijarDatosEscenas(escenas, dataJ);


Insert cell
Insert cell
aventura.iniciarAventura("inicio")




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