JC-Task-9-10
✓ Published1🌍 Public
This example shows a pie chart that breaks down a movie dataset by genre, displaying the count of movies in each category with labeled slices and a color-coded legend. The visualization also includes X and Y axis titles, though the chart itself is circular. The code loads data from a CSV file and uses D3 v5’s `csv`, `pie`, and `arc` functions to generate the slices, while `select` and `append` build the SVG elements. The chart fills the entire browser window, with genres like Drama and Action assigned distinct colors.
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