Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Question1_VT

Public visualization

Viewing a saved revision (read-only)

e0e87e77158347dc9fbca836dfb76d15

Question1_VT

0 stars0🌍 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.