Export Code

Activity6_Task2

king-p-code

Last edited Apr 07, 2025
Created on Apr 06, 2025
Forked from Hello VizHub

Uber Trip Purposes Analysis

This visualization displays a stacked bar chart showing the breakdown of Uber trip purposes by starting location. The chart highlights:

  • Top starting locations by total mileage
  • Breakdown of miles by trip purpose at each location
  • Interactive tooltips with detailed information

Features

  • Responsive design with modern styling
  • Interactive tooltips showing detailed information
  • Color-coded trip purposes with a clear legend
  • Total miles label for each location

Data Structure

The visualization uses data from data.csv that includes:

  • START_DATE, END_DATE: Date and time of trip
  • CATEGORY: Trip category (e.g., Business)
  • START, STOP: Start and end locations
  • MILES: Distance traveled
  • PURPOSE: Purpose of the trip (e.g., Meeting, Customer Visit)

Implementation

Built using D3.js v7, the visualization:

  1. Processes the raw data to extract top starting locations
  2. Creates stacked bars for different trip purposes
  3. Implements interactive elements for better user experience
MIT Licensed