Skip to main content
100%

Fork of Fork of Bar chart with a Sequential color scale

✓ Published0🌍 Public
Mmavercikalvin
Last edited Mar 8, 2023
Created on Mar 8, 2023

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
MIT Licensed

Similar vizzes