🌍 Public
Viewing a saved revision (read-only)
df30511c13e440b8964aab18febbb253
TAK-9&10
This D3.js v7 pie chart visualizes the distribution of genres based on the "below 5.0" column from a CSV data source. The visualization renders an SVG pie chart with 300x300 dimensions, using `d3.pie` to compute arc segments and `d3.arc` for path generation, with an ordinal color scale (`d3.scaleOrdinal`) applying a categorical color scheme. A custom legend is built dynamically, displaying each genre with a corresponding color swatch, while the chart itself includes white stroke separators between segments.
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.