Skip to main content
100%

xyz

✓ Published0🌍 Public
Mmanojapopuri@gmail.com
Last edited Apr 22, 2024
Created on Apr 22, 2024
Forked from Hello VizHub

This example shows a pie chart visualizing the counts of car names from a CSV dataset of F1 cars. The chart displays each car as a colored slice with its count labeled in the center, and it includes a legend with colored rectangles for each car name. The code loads D3 v7 via Skypack and uses `csv`, `pie`, and `arc` to generate the chart, along with `d3.scaleOrdinal` and `d3.schemeCategory10` for coloring. The visualization is rendered as SVG with axis labels for "Car Names" and "Count".

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