Weekend vs. Weekday Barchart
This visualization compares weekend versus weekday food orders from a Foodhub NYC delivery dataset, letting users toggle between total order count and total money spent via a dropdown menu. The bar chart uses d3.scaleBand and d3.scaleLinear to render two bars, with d3.flatRollup aggregating measurements by day type. The axes are drawn with d3.axisLeft and d3.axisBottom, while the menu is implemented through d3 select/join, and colors come from d3.schemePastel2. Data loads from a CSV and updates dynamically when the menu selection changes.
AI-generated descriptionLoading 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)