Skip to main content
100%

barchart test

✓ Published1🌍 Public
Ddriftcafe
Last edited Apr 6, 2022
Created on Feb 20, 2022
Forked from Histogram

This example displays a histogram of horsepower counts for German car brands, with the x-axis showing horsepower values from 50 to 650 and the y-axis representing the frequency of cars in each bin. The code uses d3.csv to load the data, d3.histogram to bin the values, and d3.scaleLinear for both axes. Interactive tooltips appear on hover, showing the range of each bin, while the bars are rendered as SVG rectangles with animated stroke changes on mouseover.

AI-generated description
MIT Licensed

Similar vizzes