Skip to main content
100%

CSCE 5320 ASSIGNMENT 2 QSN1

✓ Published0🌍 Public
Ssriharshakondakindi@gmail.com
Last edited Apr 13, 2024
Created on Apr 13, 2024

This example shows a pie chart of movie genres, illustrating the proportion of films rated above 8.5. The code loads CSV data from a GitHub repository, converts the rating column to numeric values, and uses d3.pie and d3.arc to generate SVG paths colored by genre via d3.scaleOrdinal and d3.schemeCategory10. A legend with colored rectangles and text labels is appended to the SVG, with opacity set for each slice.

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