Skip to main content
100%

Activity_7_QA_1

✓ Published0🌍 Public
SSai Sandhya Nannapaneni
Last edited Nov 6, 2024
Created on Nov 6, 2024

A pie chart displays the top cuisine types by number of orders from a NYC Foodhub delivery dataset, with each slice sized proportionally to order volume and color-coded per cuisine. The visualization uses D3 v7's `d3.pie`, `d3.arc`, and `d3.scaleOrdinal` to generate the chart, with a legend identifying each cuisine and labels showing order counts above 100. Data is parsed from a CSV via `d3.csvParse` and aggregated using `d3.flatRollup`.

AI-generated description

Loading a dataset that has information on food orders/deliveries in NYC through the app Foodhub.

(Dataset from: https://www.kaggle.com/datasets/ahsan81/food-ordering-and-delivery-app-dataset)

Column Description/Data Types

order_id: unique id that is connected to each order (Ordinal)

customer_id: unique id that is connected to the customer ordering the food (Ordinal)

restaurant_name: name of the restaurant that the order is from (Categorical)

cuisine_type: type of food ordered (Categorical)

cost_of_the_order: how much the order cost (Quantitative)

day_of_the_week: either Weekend or Weekday, indicates when the order took place (Categorical)

rating: rating that customer gave on order (out of 5) (Quantitative)

food_preparation: time (in minutes) that it took the restaurant to prepare the order to be delivered (Quantitative)

delivery_time: time (in minutes) that it took for the order to be delivered to the customer (Quantitative)

MIT Licensed

Similar vizzes