Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Assignment2_question6

Public visualization

Assignment2_question6

0 stars0🌍 Public
Bbogasamudramvamsikrishnareddy
Last edited Jul 21, 2023
Created on Jul 21, 2023
Forked from Hello VizHub

This example displays a map of Texas rendered as an SVG using D3.js version 5. It loads U.S. state boundaries from the `us-atlas` TopoJSON file hosted on a CDN, then extracts the geometry for Texas using the `topojson.feature` API. The map is projected with `d3.geoAlbersUsa` and drawn with `d3.geoPath`, resulting in a single-path visualization of the state outline. The code selects the body element and appends an SVG canvas sized 960 by 500 pixels to display the final geographic shape.

AI-generated description

A demonstration of how to start using D3 version 6.

Comments

Sign in to join the discussion.

MIT Licensed