Skip to main content
100%

act7-q1

✓ Published2🌍 Public
RRayabarapu Nikhitha
Last edited Nov 5, 2024
Created on Nov 5, 2024

This example displays a pie chart showing the distribution of insurance records across regions. It loads a CSV file from a GitHub gist and aggregates the data by region using `d3.rollup`. The pie slices are rendered with `d3.pie()` and `d3.arc()` into an SVG, with each slice labeled with its count and colored using `d3.scaleOrdinal` with the `schemeCategory10` palette. A separate legend SVG lists the region names and their corresponding colors.

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