Skip to main content
100%

Activity 7

✓ Published0🌍 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.
MIT Licensed

Similar vizzes