Public
Edited
Jan 26, 2023
Insert cell
Insert cell
data = fetch("https://france-decouverte.geoclip.fr/api/v1/functions/statdata?lang=fr&nivgeo=fra&codgeo=99&indics=revenus.rfucq2xx").then((response) => response.json())
Insert cell
Insert cell
Plot.plot({
height: 500,
width: 800,
style: {
fontSize: 14
},
marks: [
Plot.ruleY([0]),
Plot.lineY(revMoyData, {
x: "tAxis",
y: "value",
curve: "basis",
strokeWidth: 2,
stroke: "#993404"
})
],
grid: true,
x: {
label: "année",
type: "point"
},
y: {
label: data.content.indicators[0].c_lib_indicateur + " (" +data.content.indicators[0].c_unite + ")",
},
marginTop: 50,
marginLeft: 50,
marginBottom: 50
})
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