Public
Edited
May 28, 2024
Insert cell
Insert cell
best_testfile_visualstudio.csv
Type Table, then Shift-Enter. Ctrl-space for more options.

Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
myGraph = Plot.plot({
title: `Letters`,
height: chartHeight,
width: chartWidth,
marginBottom: 50,
marks: [
Plot.dot(chartData, Plot.dodgeY({
x: "Date",
title: "Letter_ID",
tip: true,
}))
],
x: {
tickRotate: -45,
grid: true,
}
})
Insert cell
chartData = {
var recipientFilter = data.filter( d => recipientName.includes(d.Recipient_Name))
var timeFilter = recipientFilter.filter(d => d.year >= timeInterval[0] && d.year <= timeInterval[1])
if (locationFilter != null)
return timeFilter.filter(d => d.Dispatch_Location == locationFilter )//then filter
else //if there is no categery filter
return timeFilter
}
Insert cell
recipients = _.uniq(data.map(d => d.Recipient_Name))
Insert cell
timeInterval[1]
Insert cell
data
Insert cell
Object.keys(data[0])
Insert cell
data.forEach(d => {
d.year = dateToYear(d.Date)
})
Insert cell
dispatchLocations = _.uniq(data.map(d => d.Dispatch_Location))
Insert cell
timeParser = d3.timeParse("%Y")
Insert cell
dateToYear(new Date)
Insert cell
dateToYear = d3.timeFormat("%Y")
Insert cell
earliest = d3.min(data.map(d => d.year))
Insert cell
latest = d3.max(data.map(d => d.year))
Insert cell
import {interval} from "@mootari/range-slider@1781"
Insert cell
import {jaune as yellow} from "@artistes-femmes-mac/charte-de-couleurs"
Insert cell
import {noir as black} from "@artistes-femmes-mac/charte-de-couleurs"
Insert cell
import {bordeau as burgundy} from "@artistes-femmes-mac/charte-de-couleurs"
Insert cell
import {gris as grey} from "@artistes-femmes-mac/charte-de-couleurs"
Insert cell
import {turquoise as blue} from "@maison-mona/preparation-reconciliation"
Insert cell
data
X
Y
territory
Color
gender
Size
Facet X
Facet Y
Mark
bar
Type Chart, then Shift-Enter. Ctrl-space for more options.

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