Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Question 1

Public visualization

Question 1

0 stars0🌍 Public
Eeedaraajay02@gmail.com
Last edited Apr 29, 2024
Created on Apr 28, 2024
Forked from Hello VizHub

This pie chart displays vehicle registration counts by type, using color-coded sections with value labels and a legend that pairs each category with its numeric count. The chart is rendered as an SVG using D3 v5, loading data from a CSV file via the `d3.csv` function. The visualization employs D3's `pie`, `arc`, and `scaleOrdinal` APIs to generate the sectors and colors, while the legend and labels are built using D3's `select` and `append` methods. The styling is defined in a separate CSS file, and the code demonstrates the use of ES6 modules for data fetching and rendering.

AI-generated description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.

Comments

Sign in to join the discussion.

MIT Licensed