Bar Chart
✓ Published0🌍 Public
This bar chart displays the weight of 20 car models, using a horizontal layout where each car name is listed on the y-axis and its corresponding weight extends along the x-axis. Built with React and D3.js v5, it employs `scaleBand` for the categorical y-axis and `scaleLinear` for the numeric x-axis, rendering bars as SVG rectangles. The chart loads data from a CSV file via a custom `useData` hook, includes formatted tick labels that convert gigabytes to billions, and provides tooltips on hover.
AI-generated descriptionBar Chart using D3.js
MIT Licensed