🌍 Public
Viewing a saved revision (read-only)
9879f5c8a49a4bb68f930083db571c9e
Question1_VT
This pie chart displays the distribution of movie ratings for films in the Documentary genre, sourced from a CSV file. The visualization uses D3 v6's pie chart API (`d3.pie`) and arc generators (`d3.arc`) to render the SVG paths, with color encoding provided by `d3.scaleOrdinal` and the `schemeCategory10` palette. The chart includes a legend positioned to the right, generated via D3’s selection and append methods. The code filters the dataset by genre, then maps rating columns into key-value pairs for the pie slices.
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.