🌍 Public
Viewing a saved revision (read-only)
6cecd1626509420da1ab159ea7deb607
Fork of Fork of Bar chart with a Sequential color scale
Mmavercikalvin
Last edited Mar 8, 2023
Created on Mar 8, 2023
Forked from Fork of Bar chart with a Sequential color scale
A horizontal bar chart displays the average horsepower of seven car brands, from Volkswagen to Mercedes-AMG, sorted in ascending order. Bars use a sequential color scale from the ColorBrewer Reds palette, rendered as SVGs via D3 v6, with a hover tooltip showing exact values. The code loads data from a CSV, applies `d3.scaleBand`, `d3.scaleLinear`, and `d3.scaleQuantize`, and uses the d3-legend library to generate a color legend.
AI-generated description