Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Bar chart with a Sequential color scale

Public visualization

Fork of Bar chart with a Sequential color scale

0 stars0🌍 Public
Lliu yang
Last edited Mar 1, 2024
Created on Mar 1, 2024

This bar chart displays the average horsepower of car makes, sorted from lowest to highest, with a sequential color scale from light to dark red indicating increasing values. It uses D3 v6 with SVG rendering and includes interactive tooltips on hover, as well as axis labels and a legend. The code employs `d3.scaleBand` for the x-axis, `d3.scaleLinear` for the y-axis, and `d3.scaleQuantize` with `colorbrewer.Reds[7]` for the color mapping. Data is loaded from a CSV file and filtered to seven specific makes.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed