Public
Edited
Jan 21, 2024
Importers
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 {Legend, Swatches} from "@d3/color-legend"
Insert cell
san_andres = {
let resp = san_an.features.filter(d=>d.properties['dpto_cnmbr'] === 'ARCHIPIÉLAGO DE SAN ANDRÉS, PROVIDENCIA Y SANTA CATALINA')
let resp_copy = [...resp]
resp_copy[0].geometry.coordinates = [resp_copy[0].geometry.coordinates[0]]
return resp_copy
}
Insert cell
providencia = {
let resp = provi.features.filter(d=>d.properties['dpto_cnmbr'] === 'ARCHIPIÉLAGO DE SAN ANDRÉS, PROVIDENCIA Y SANTA CATALINA')
let resp_copy = [...resp]
resp_copy[0].geometry.coordinates = [resp_copy[0].geometry.coordinates[4],resp_copy[0].geometry.coordinates[5]]
return resp_copy
}
Insert cell
provi = d3.json('https://gist.githubusercontent.com/nestorandrespe/2220a8f9d4095a2983f87504603d6ef1/raw/9bf7b991e80e21156cd04349df061cd2e44ef099/departamentos.json')
Insert cell
san_an = d3.json('https://gist.githubusercontent.com/nestorandrespe/2220a8f9d4095a2983f87504603d6ef1/raw/9bf7b991e80e21156cd04349df061cd2e44ef099/departamentos.json')
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
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