Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Cost Analysis

Public visualization

Viewing a saved revision (read-only)

20c5b12bdef84ed395680c73091513d1

Cost Analysis

0 stars0🌍 Public
Zzhu
Last edited Aug 1, 2020
Created on Jul 31, 2020
Forked from Cost Analysis

Two side-by-side pie charts compare one-year versus ten-year cost breakdowns for categories including Blue-light and Security Guard, using data loaded from CSV files. The D3 v5 code builds an SVG visualization with a title, and the charts are rendered using `d3.pie` and `d3.arc` with labels generated via `arcLabel.centroid`. A color scale from `d3.scaleOrdinal` and `d3.schemeAccent` distinguishes categories, while text elements display names and dollar values on each slice.

AI-generated description