Published
Edited
Aug 29, 2022
54 stars
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
// lol, so this USED to not work, but it looks like api.metro.net upgraded
// and enabled CORS. Before, this call would error out, and not return any data!
d3.csv('https://ranking.ittf.com/public/s/ranking/csv?category=SEN&typeGender=W%3BSINGLES&year=2020&week=14') // ✖️
Insert cell
Insert cell
Insert cell
d3.csv(
'https://cors-anywhere.herokuapp.com/https://ranking.ittf.com/public/s/ranking/csv?category=SEN&typeGender=W%3BSINGLES&year=2020&week=14'
) // 🆗
Insert cell
Insert cell
Insert cell
data = d3.csv('https://asg017-cors.herokuapp.com/https://ranking.ittf.com/public/s/ranking/csv?category=SEN&typeGender=W%3BSINGLES&year=2020&week=14', d3.autoType) // ✔️
Insert cell
Inputs.table(data)
Insert cell
Insert cell
Insert cell
Insert cell
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