Published
Edited
Sep 8, 2021
Fork of Untitled
Insert cell
Insert cell
Insert cell
viewof selected = Table(search, {multiple: false})
Insert cell
md`${
typeof descriptions === "string"
? descriptions
: `**Informations stockage**:<br/>
Stock cumulé pour l'annee ${descriptions.Annee} jusqu'au mois ${descriptions.Mois}: ${descriptions.StockCumuleParAnneeParMois}<br/>
Stock Moyen mensuel pour l'annee ${descriptions.Annee}: ${descriptions.StockMoyenMensuelParAnnee} <br/>
Stock cumulé sur 3 ans: ${descriptions.StockCumuleSur3ans} <br/>`
}`
Insert cell
/*
md`${
typeof descriptions === "string"
? descriptions
: `**${descriptions.Headline}**: ${descriptions.Description}. ${descriptions.Links} <br/>`
}`
*/
Insert cell
Insert cell
Insert cell
descriptions = selected == null
? "Click the checkbox (left) to select a row for more information."
: selected
Insert cell
/*
data = d3.csv(
"https://docs.google.com/spreadsheets/d/1wZhPLMCHKJvwOkP4juclhjFgqIY8fQFMemwKL2c64vk/export?format=csv",
d3.autoType
)
*/
data = FileAttachment("kpis2@2.csv").csv()

Insert cell
/* ['famille',
'site',
'annee',
'mois',
'stock',
'stockCumuleParAnnee',
'stockCumuleParAnneeParMois',
'stockCumuleSur3ans',
'stockMoyenMensuelParAnnee',
'informations']
*/
Insert cell
remapped = data.map(d => ({
Famille: d.famille,
Site: d.site,
Annee: d.annee,
Mois: d.mois,
Stock: d.stock,
StockCumuleParAnneeParMois: d.stockCumuleParAnneeParMois,
StockCumuleSur3ans: d.stockCumuleSur3ans,
StockMoyenMensuelParAnnee: d.stockMoyenMensuelParAnnee
}))
Insert cell
d3 = require("d3")
Insert cell
import { Search, Table } from "@observablehq/inputs"
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