Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Question1_VT

Public visualization

Viewing a saved revision (read-only)

9879f5c8a49a4bb68f930083db571c9e

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

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.