Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

D3 Bar Chart for Assignment 4

Public visualization

Viewing a saved revision (read-only)

6c687b0a56594dd58b2f6f6d41679feb

D3 Bar Chart for Assignment 4

0 stars1🌍 Public
Vvishusikka
Last edited Mar 9, 2022
Created on Feb 22, 2022
Forked from P5js Barchart

This D3.js bar chart visualizes the distribution of horsepower for German car brands using a histogram. The chart bins horsepower values into equal-width intervals along the x-axis, with bar heights representing the count of vehicles in each range. Built with an SVG rendering, the visualization features a blue color scheme and includes axis labels and a title. Interactive tooltips appear on hover, displaying the specific horsepower range of each bar. The implementation uses d3.csv for data loading, d3.histogram for binning, and d3.scaleLinear for both axes.

AI-generated description