Skip to main content
100%

Pie Chart

✓ Published0🌍 Public
CChaitanya Ratan Sree
Last edited Nov 6, 2024
Created on Nov 6, 2024

This pie chart visualizes the basic costs associated with the top 10 countries from a CSV dataset. It shows each country as a proportional slice of the pie, with values formatted in dollars and a legend listing country names and their corresponding costs. Hovering over a slice triggers a tooltip displaying the country and its cost. Built with D3 v7, the visualization uses the `pie` and `arc` functions to generate the chart, `scaleOrdinal` and `schemeCategory10` for color assignment, and SVG rendering for output.

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