Skip to main content
100%

Pie chart

✓ Published0🌍 Public
DDouglas mochama
Last edited Apr 29, 2024
Created on Apr 29, 2024
Forked from Activity 9

This pie chart visualizes the rating distribution for Action genre movies, with five rating categories from "below 5.0" to "above 8.5". The chart is rendered as an SVG using D3.js v7, with arcs generated by the `d3.arc` and `d3.pie` APIs. Data is loaded from a CSV file via `d3.csv`, filtered, and then mapped to a categorical color scheme using `d3.scaleOrdinal` and `d3.schemeCategory10`. A legend lists each rating bracket next to its corresponding color.

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