xyz
✓ Published0🌍 Public
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 descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.
MIT Licensed