Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Loading and parsing topojson data

Public visualization

Viewing a saved revision (read-only)

56674bcb5ec047408cdae09c9458fb12

Loading and parsing topojson data

0 stars0🌍 Public
AAnimesh Nautiyal
Last edited Oct 13, 2020
Created on Oct 13, 2020
Forked from HTML Starter

This example demonstrates how to load and parse a TopoJSON file from a remote URL, logging the resulting JSON object to the browser console. The code defines an asynchronous function that uses the `fetch` API to request the TopoJSON file and then parses the response as JSON. It specifically targets a dataset containing India’s state boundaries from the NFHS-4 survey, with the file hosted on GitHub Gist. The visualization itself is minimal, containing only a near-empty webpage with oversized text, as the primary purpose is to inspect the raw data structure through the console output rather than display a map.

AI-generated description

Loading and parsing topojson data