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:
- Processes the raw data to extract top starting locations
- Creates stacked bars for different trip purposes
- Implements interactive elements for better user experience