Example of Loading External Data
This example demonstrates how to fetch and display external tabular data directly from a GitHub repository URL, bypassing the need for manual upload. The visualization shows a summary of the dataset’s row count, column count, and file size in kilobytes, followed by the first 10 rows formatted as JSON. The code uses D3’s `tsv()` function to load a TSV file from `https://raw.githubusercontent.com/hopperrr/ellis-immigration-by-ship`, along with `select()`, `csvFormat()`, and `format()`. The dataset originates from the Ellis Island immigration ship records.
AI-generated descriptionThis example shows how you can pull in data directly from URLs that start with https://raw.githubusercontent.com/, without the need to upload the data into VizHub. This dataset, for example, comes from hopperrr/ellis-immigration-by-ship.