Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Bar chart with a Sequential color scale

Public visualization

Viewing a saved revision (read-only)

4a382cefbf7248f9b091c61401d02423

Fork of Bar chart with a Sequential color scale

0 stars0🌍 Public
JJim Luo
Last edited Jul 30, 2022
Created on Jul 30, 2022

A sequential bar chart displays average horsepower for seven automobile brands, sorted from lowest to highest, with color intensity increasing alongside value. The visualization uses D3 v6 to construct SVG rectangles scaled by `d3.scaleBand` and `d3.scaleLinear`, while a `d3.scaleQuantize` maps horsepower values to a seven-step reds palette from colorbrewer. Hovering reveals a tooltip with the exact value, and an interactive legend and axes are generated using `d3.legendColor` and axis components. Data comes from a CSV file provided in the accompanying `barchart.csv`.

AI-generated description