Bubble chart - Engine Displacement vs. Fuel Economy - Bubble size = weigth, Color = Num Cylinders
✓ Published3🌍 Public
A bubble chart displays engine displacement against fuel economy for a dataset of cars loaded via `d3.csv`. Circle radius encodes vehicle weight using `d3.scaleSqrt`, while color, mapped through `d3.scaleOrdinal` with `d3.schemeCategory10`, distinguishes cylinder counts. Axes and labels are generated with `d3.axisBottom` and `d3.axisLeft`, and the SVG rendering includes a hover effect that increases opacity. A legend lists cylinder categories with colored swatches. The chart uses D3 v7 to bind data and render circles within an SVG container sized to the window.
AI-generated descriptionMIT Licensed