CSCE 5320 ASSIGNMENT 2 QSN1
✓ Published0🌍 Public
This example shows a pie chart of movie genres, illustrating the proportion of films rated above 8.5. The code loads CSV data from a GitHub repository, converts the rating column to numeric values, and uses d3.pie and d3.arc to generate SVG paths colored by genre via d3.scaleOrdinal and d3.schemeCategory10. A legend with colored rectangles and text labels is appended to the SVG, with opacity set for each slice.
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