Public
Edited
May 31, 2023
Insert cell
md `## Evolucion temporal entidades`
Insert cell
parser = d3.timeParse("%Y-%m-%d")
Insert cell
parser_año = d3.timeParse("%Y")
Insert cell
import {select} from "@jashkenas/inputs"
Insert cell
import {LineChart} from "@d3/multi-line-chart"

Insert cell
import {howto, altplot} from "@d3/example-components"
Insert cell
datos=FileAttachment("identidade_año.csv").csv()
Insert cell
Insert cell
chart2 = LineChart(datos_formateados, {
x: d => d.Año,
y: d => d.valueofgoodsusd,
//y: d => (function(d) { return metrica }),
z: d => d.id,
yLabel: "↑ valueofgoods (Dolares)",
width: 600,
height: 400,
color: "steelblue"
//voronoi:"false" // if true, show Voronoi overlay
})
Insert cell
Insert cell
viewof rcv = Inputs.select(d3.group(datos_formateados, d => d.rcvcountry), {rcvcountry: "rcvcountry"})
Insert cell
chart1 = LineChart(rcv, {
x: d => d.Año,
y: d => d.Dls_Kg,
z: d => d.id,
yLabel: "↑ valueofgoods (Dolares)",
width:600,
height: 300,
color: "steelblue"
//voronoi:"true" // if true, show Voronoi overlay
})
Insert cell
reform = rcv.map(function(obj){
var rObj = {};
rObj['Año'] = obj.Año;
rObj['id'] = obj.id;
rObj["'"+ metrica + "'"] = obj[metrica];
return rObj;
});
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