🌍 Public
Viewing a saved revision (read-only)
84cdad20fc3b4c9c8be41c29c9f605e1
PieChart For Restaurant
This pie chart visualizes the profit margins of the top 10 Indian restaurants, with each slice sized by profit in millions and labeled with its value. The chart uses D3 v5 APIs including `pie`, `arc`, and `scaleOrdinal` to compute slice angles, generate SVG path segments, and assign categorical colors from a predefined palette. A legend on the right lists restaurant names alongside their corresponding profit values, and the data is loaded from a CSV hosted on GitHub.
AI-generated description