Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Task 9&10

Public visualization

Viewing a saved revision (read-only)

d4ac59bfe85e43caaaed3e8a2453e9ec

Task 9&10

0 stars0🌍 Public
Mmangilipallylaxminarayana@gmail.com
Last edited Apr 22, 2024
Created on Apr 22, 2024

A pie chart displays the proportional quantities of five car models from a CSV file, with slices labeled by name. The static SVG visualization is built using D3 v7, loading data via `d3.csv` and computing arc paths with `d3.arc`. A categorical color scale from `d3.scaleOrdinal` colors each slice, while a custom legend lists the model names alongside colored swatches. The chart is rendered inside an SVG canvas with fixed dimensions, and slice labels are positioned using arc centroids.

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.