Skip to main content
Public

Share visualization

Loading preview…

loading_data_NH_2_gps_data

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

loading_data_NH_2_gps_data

0
NNavak94
Last edited Jan 24, 2023
Created on Jan 23, 2023
Forked from loading_data_NH_2

This example loads a CSV of world capitals with their GPS coordinates and displays the raw dataset as a JSON string in the browser. The visualization fetches `data.csv` using the Fetch API and parses it with `d3.csvParse`, converting latitude and longitude values to numbers. Each row is then rendered as a `pre` element using D3’s data join. The data comes from a Kaggle dataset listing capital cities by country and continent.

AI-generated description

loading_data_NH_2_gps_data

CountryName, CapitalName , CountryCode, and ContinentName are categorical data CapitalLatitude,CapitalLongitude are quantitative data

what is the average distance from capital to capital?

A list of world capitals and their corresponding GPS points from https://www.kaggle.com/datasets/nikitagrec/world-capitals-gps

Comments

Sign in to join the discussion.

MIT Licensed