Pie Chart
✓ Published0🌍 Public
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 descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.
MIT Licensed