Fork of Bar chart - Highest MPG
✓ Published0🌍 Public
This bar chart visualizes the average city MPG for different car makes, sorted from lowest to highest, with MINI achieving the highest fuel efficiency. The chart uses a sequential red color scale to encode MPG values, with darker shades representing higher efficiency. Built with D3.js v6, it employs `d3.scaleBand`, `d3.scaleLinear`, and `d3.scaleQuantize` for axes and color mapping, along with `d3.legendColor` for the legend. Interactive tooltips display exact MPG values on hover, and the data comes from a CSV file listing each make’s average MPG.
AI-generated descriptionMIT Licensed