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
dataGraphiqueInstallation = {
var resultat = [];
switch(selectAcquisition){
case "Dons":
resultat = oeuvresMacEtudiees.filter(d => d.numero.substring(0,1) == "D")

break;

case "Achats":
resultat = oeuvresMacEtudiees.filter(d => d.numero.substring(0,1) == "A")
break;

case "Tous":
resultat = oeuvresMacEtudiees
break;
}

if (!lavalinEt1992)
resultat = resultat.filter(d => d.dateAcquisition !== 1992)

resultat = resultat.filter(d => d.categorie == "Installation")
//on ignore les œuvres au genre assocé "Inconnu"
resultat = resultat.filter( d => d.genreAssocie != "Inconnu")
return resultat
}
Insert cell
dataGraphiqueInstallation.forEach(d => console.log(typeof(d)))
Insert cell
genres = new Set(oeuvresMacEtudiees.map(d => d.genreAssocie))
Insert cell
categories = new Set(oeuvresMacEtudiees.map( d => d.categorie))
Insert cell
photographies = new Set(oeuvresMacEtudiees.map( d => d.Photographie))
Insert cell
Insert cell
oeuvresMac
Type Table, then Shift-Enter. Ctrl-space for more options.

Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
achats3categories = oeuvresTri3Categories(oeuvresMacEtudiees.filter(d => d.numero.substring(0,1) == "A"))
Insert cell
tout3categories = oeuvresTri3Categories(oeuvresMacEtudiees)
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
oeuvresMac.find(d => d.id =="dualite-dualite")
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
oeuvreSansArtiste = oeuvresMac.find(d => d.title ="New York Stock Exchange")
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
import {oeuvresTri3Categories} from "1cd6c83a4402c258"
Insert cell
import {oeuvresMacEtudiees} from "1cd6c83a4402c258"
Insert cell
import {associationGenreAOeuvre} from "1cd6c83a4402c258"
Insert cell
import {artistesMac} from "1cd6c83a4402c258"
Insert cell
import {oeuvresMac} from "1cd6c83a4402c258"
Insert cell
import {couleurs} from "26cecfbef9723965"
Insert cell
jaune = couleurs[0]
Insert cell
noir = couleurs[3]
Insert cell
bordeau = couleurs[2]
Insert cell
gris = couleurs[1]
Insert cell
import {interval} from '@mootari/range-slider@1781'
Insert cell
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