Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity 7

Public visualization

Viewing a saved revision (read-only)

31230e974cc046eb9c5be1fc330cebba

Activity 7

0 stars0🌍 Public
Vvishu.valandas@gmail.com
Last edited Nov 7, 2024
Created on Nov 6, 2024
Forked from Hello VizHub

This pie chart visualizes the maximum life expectancy of different car models. The D3.js code loads CSV data from a GitHub gist, processes values, and renders an SVG pie chart with labeled segments and a color-coded legend. It uses D3's `pie`, `arc`, `scaleOrdinal`, and `select` APIs, with text labels positioned via `arcGenerator.centroid`. The chart's title is "Max_life expectency of cars".

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.