Published
Edited
Feb 17, 2020
1 fork
6 stars
Insert cell
Insert cell
Insert cell
viewof source_upload = html`<input type=file accept=".csv">`
Insert cell
Insert cell
source_upload_file = await fetch(URL.createObjectURL(source_upload))
Insert cell
source_upload_text = source_upload_file.text()
Insert cell
d3 = require("d3-dsv@1")
Insert cell
import {printTable} from '@uwdata/data-utilities'
Insert cell
source_upload_data = d3.csvParse(source_upload_text, d3.autoType)
Insert cell
printTable(source_upload_data.slice(0,10))
Insert cell
Insert cell
Insert cell
Insert cell
source_url_file = await fetch(new URL(source_url))
Insert cell
source_url_text = source_url_file.text()
Insert cell
source_url_data = d3.csvParse(source_url_text, d3.autoType)
Insert cell
printTable(source_url_data.slice(0, 10))
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