Ques 1_ASS II SDV
✓ Published1🌍 Public
This pie chart displays the income of the top 10 Indian states for the financial year 2011-12. The data is loaded from a remote CSV file, sorted by income, and then sliced to show only the top ten states. The visualization is rendered using D3 v5 with an SVG canvas. It uses `d3.pie`, `d3.arc`, and `d3.scaleOrdinal` to create the pie segments and color them, while also generating a custom legend with rectangles and text labels for each state and its corresponding income in Rupees.
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