Type Table, then Shift-Enter. Ctrl-space for more options.
temperature.csv
Type Table, then Shift-Enter. Ctrl-space for more options.
// Call the variable by its name and it will return an array of objects.
// You will need to expand the returned array with your mouse to match the template picture; the view will be collapsed again if you refresh the page; this is OK.
data_manuallyTyped[0].temperature.constructor.name// ... your code here
parseTime=d3.timeParse("%Y-%m-%d")
parseTime("2011-10-02")
data_manuallyTyped=FileAttachment('temperature.csv').csv()// no `{typed: true}` in `csv()`
.then(data=>{
data.forEach(d=>{
d.date=parseTime(d.date)// from string to Date object
d.temperature=(d.temperature/1.8)-32// from Fahrenheit to Celsius
})
returndata
}
)
SummaryTable(data_manuallyTyped)
data_autoTyped[0].date.constructor.name// ... your code here
data_manuallyTyped[0].temperature.constructor.name// ... your code here
imageToDo
openAllLinksInNewTab
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.