Skip to main content
100%

activity7pie

✓ Published0🌍 Public
Aazeemrm630@gmail.com
Last edited Nov 7, 2024
Created on Nov 7, 2024

This visualization is a pie chart showing the maximum life expectancy of different car models. The data is loaded from a GitHub-hosted CSV file using D3's `csv` function. The pie chart is rendered as SVG paths generated with `d3.pie`, `d3.arc`, and `d3.scaleOrdinal` for color mapping, with each slice labeled with its value. A legend on the right displays the car names and their corresponding life expectancies using rectangle swatches and text. The chart uses a fixed width and height of 960 by 500 pixels, with the center positioned at (250, 250).

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