Skip to main content
100%

Question1_VT

✓ Published0🌍 Public
RRJVENKATESH789@GMAIL.COM
Last edited Apr 20, 2024
Created on Apr 20, 2024
Forked from Hello VizHub

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 description

Pie Chart Visualization

This visualization represents the distribution of movie ratings for the Documentary genre using a pie chart.

How to Run

  1. Clone the repository.
  2. Open the index.html file in a web browser to see the visualization.
MIT Licensed

Similar vizzes