Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Bar Chart with color Legend: Chrysler cars HP

Public visualization

Viewing a saved revision (read-only)

da8bc76774f64c2497aa98e4d7de9613

Bar Chart with color Legend: Chrysler cars HP

0 stars0🌍 Public
Kkfhujosefsson@dons.usfca.edu
Last edited Mar 5, 2025
Created on Mar 4, 2025

This bar chart displays the horsepower ratings of various Chrysler car models, with each bar’s blue color intensity mapped to its power output and a separate HTML legend showing the color scale. Data is loaded from a CSV file using `d3.csv`, and the chart is rendered as SVG with `d3.scaleBand` for the x-axis, `d3.scaleLinear` for the y-axis, and `d3.scaleSequential` with `d3.interpolateBlues` for color encoding. The `d3-legend` plugin generates the color legend, while axis labels and data labels are added manually.

AI-generated description