Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

PieChart For Restaurant

Public visualization

Viewing a saved revision (read-only)

caf8ac9a6fa84bbe8c2c5c38ba4db24d

PieChart For Restaurant

0 stars0🌍 Public
Kkrishnavisheshkatta@my.unt.edu
Last edited Apr 21, 2024
Created on Apr 21, 2024

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

The above pie chart is created by using html, css, d3.js. CSS is used for styling the web page.