Fork of Q1_DataViz_PiechartForCarPerformance
✓ Published0🌍 Public
This interactive pie chart visualizes car performance metrics, allowing users to toggle between horsepower, torque, and highway MPG while grouping data by individual models or manufacturers. The visualization aggregates the dataset and limits top slices with an "Other" category for readability. Built with D3.js v6, it uses the `d3.pie` layout, `d3.arc` generators, and `d3.scaleOrdinal` for colors, with hover tooltips, animated slice transitions via `transition.attrTween`, and an interactive legend. The responsive SVG chart adapts its width to viewport size.
AI-generated descriptionCar Performance Data Visualization
An interactive and responsive data visualization that displays car performance metrics using D3.js.
Features
- Interactive pie chart visualization of car performance data
- Toggle between different metrics (horsepower, torque, highway MPG)
- Group data by manufacturer or individual car models
- Responsive design that works on desktop and mobile devices
- Interactive tooltips showing detailed information
- Highlighting effect when hovering over chart segments or legend items
Usage
- Open
index.htmlin a web browser - Use the dropdown menus to switch between different metrics and grouping options
- Hover over pie segments or legend items for detailed information
Technical Details
- Built with D3.js version 6
- Uses ES6 modules for better code organization
- Responsive design with CSS media queries
- Data aggregation and processing utilities
MIT Licensed