Public
Edited
Mar 16, 2023
1 fork
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
FileAttachment("electricite@2.csv").csv({ typed: true })
Insert cell
electricite@2.csv
Type Table, then Shift-Enter. Ctrl-space for more options.

Insert cell
Plot.plot({
marks: [Plot.areaY(electricite2, { x: "date", y: "total" }), Plot.ruleY([0])]
})
Insert cell
Insert cell
FileAttachment("electricite@1.json").json()
Insert cell
Insert cell
xls = FileAttachment("electricite@2.xlsx").xlsx()
Insert cell
xls.sheet(0)
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
indices.records.map((d) => d.fields.nom)
Insert cell
Insert cell
indices.records.forEach((d) => (d.fields.geo = JSON.parse(d.fields.geo_shape))) // transformer le format string en tableau javascript
Insert cell
indices
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
map = {
const container = yield htl.html`<div style="height: 500px;">`;
const map = L.map(container).setView([37.774, -122.423], 13);
L.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png", {
attribution:
"© <a href=https://www.openstreetmap.org/copyright>OpenStreetMap</a> contributors"
}).addTo(map);
}
Insert cell
dge = FileAttachment("datagrandest.json").json()
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