Public
Edited
Jul 5, 2024
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
ts
Insert cell
(viewof ts).groups
Insert cell
(viewof ts).details
Insert cell
ts
Insert cell
Insert cell
data = FileAttachment("KMC-1k-Base 1993-2022 Jul -20220929.csv").csv({ typed: true });
Insert cell
dataStages = transformData(data, "Iden_Codigo", stages, "ERN_Sexo");
Insert cell
curves = FileAttachment("curvasv2.json").json()
Insert cell
selectedStages = {
let rawData = transformData(dataGroups, "Iden_Codigo", stages, "__group");
rawData = rawData.filter((d) => d["__time"] > 24 && d["__time"] < 100);
rawData.forEach((d) => {
if (d["peso"] > 20000 || d["peso"] < 100) {
d["peso"] = null;
}
if (d["talla"] > 80 || d["talla"] < 20) {
d["talla"] = null;
}

if (d["PC"] > 50 || d["PC"] < 10) {
d["PC"] = null;
}
});
return rawData;
}
Insert cell
dataGroups = {
G1.forEach((d) => (d["__group"] = nameG1));
G2.forEach((d) => (d["__group"] = nameG2));
let dataGroups = G1.concat(G2);
return dataGroups;
}
Insert cell
function getSelectedItems(data, iden) {
let id = 0;
let tData = new Map();
ts.forEach((selection) => {
let filterData = data.filter((d) => selection.has(d[iden]));
tData.set(id, filterData);
id++
});
return tData;
}
Insert cell
selectedDataStages = getSelectedItems(dataGroups,"Iden_Codigo")
Insert cell
Insert cell
import {searchCheckbox} from "@john-guerra/search-checkbox"
Insert cell
import {transformData,stages} from "@ivelascog/to-stages"
Insert cell
import {ViolinPlot, FacetViolinPlot} from "@john-guerra/violin-plot"
Insert cell
import {FacetedSearch} from "@john-guerra/faceted-search"
Insert cell
import {StatisticalCard, config} from "@ivelascog/statistical-card"
Insert cell
TimeSearcher = {
try {
return await require(`http://localhost:8080/dist/TimeSearcher.js?${Date.now()}`);
} catch (e) {
return await require("time-searcher-plus");
}
}
Insert cell

One platform to build and deploy the best data apps

Experiment and prototype by building visualizations in live JavaScript notebooks. Collaborate with your team and decide which concepts to build out.
Use Observable Framework to build data apps locally. Use data loaders to build in any language or library, including Python, SQL, and R.
Seamlessly deploy to Observable. Test before you ship, use automatic deploy-on-commit, and ensure your projects are always up-to-date.
Learn more