Skip to main content
100%

Task 10 sky

✓ Published0🌍 Public
Sskykarthik97@gmail.com
Last edited Apr 22, 2024
Created on Apr 22, 2024
Forked from Hello VizHub

A pie chart displays the distribution of movie genres based on their ratings above 8.5, using D3.js v6. The chart visualizes six genres—Documentary, Drama, Comedy, Romance, Animation, and Action—each represented as a slice with a corresponding legend. The code utilizes D3's `arc`, `pie`, and `selectAll` APIs to generate the SVG circles, with `scaleOrdinal` providing color assignments and text labels placed at each slice's centroid. The data, embedded in the script, shows proportional values for each genre's high-rating share.

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.
MIT Licensed

Similar vizzes