Question1_VT
✓ Published0🌍 Public
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 descriptionPie Chart Visualization
This visualization represents the distribution of movie ratings for the Documentary genre using a pie chart.
How to Run
- Clone the repository.
- Open the
index.htmlfile in a web browser to see the visualization.
MIT Licensed