Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Q1_piechart

Public visualization

Viewing a saved revision (read-only)

1b5af9b2b49643f29f93fdd6ff88e6e4

Q1_piechart

0 stars0🌍 Public
Sshaiksajidali
Last edited Apr 17, 2024
Created on Apr 17, 2024

This pie chart visualizes the worldwide gross revenue of movies from a CSV dataset, with each slice representing a single film. Hovering over a slice reveals a tooltip showing the movie title and its exact box office earnings. The chart is built using D3.js v7, employing `d3.pie()` for the layout, `d3.arc()` for the slices, and `d3.scaleOrdinal` with a color scheme for differentiation. It also includes an interactive legend and axis labels, all rendered as SVG within an HTML page.

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.