loading_data_NH_2_gps_data
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 descriptionloading_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