Published
Edited
Mar 9, 2021
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
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
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
data_winter=d3.csv("https://raw.githubusercontent.com/anasselhoud/Data-Science-projects/master/Olympics%20Games/winter.csv")
Insert cell
Insert cell
Insert cell
Insert cell
data1 = Object.assign(new Map(d3.csvParse(await FileAttachment("dictionary (1)@1.csv").text(), ({Country, Gdp}) => [Country || Country, +Gdp])), {title: "PIB par pays"})
Insert cell
grouped = d3.group(data, d => d.Country)
Insert cell
grouped_summer=d3.group(data_summer, d => d.Country)
Insert cell
grouped_rollup = Array.from(d3.rollup(data_summer, v => d3.sum(v, v => v.Medal), d => d.Country, d => d.Year, d => d.Medal))
Insert cell
grouped_summer_year=Array.from(d3.group(summer_peryear, d => d.Country))
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
d35 = require("d3@5")
Insert cell
dcol = require("https://d3js.org/d3-scale-chromatic.v0.3.min.js")
Insert cell
d355 = require("d3@5")
Insert cell
d3 = require("d3")
Insert cell
import {legend, swatches} from "@d3/color-legend"
Insert cell
import { select } from "@jashkenas/inputs"
Insert cell
d3Legend = require('d3-svg-legend')
Insert cell
import { table } from "@gampleman/table"
Insert cell
import {curveTypes} from "@palewire/d3-curves-inputs"
Insert cell
import {Scrubber} from "@mbostock/scrubber"
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