Skip to main content
100%

Bar Chart

✓ Published0🌍 Public
Aanith462@gmail.com
Last edited Jul 21, 2023
Created on Jul 21, 2023
Forked from activity -6

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 description

Bar Chart using D3.js

MIT Licensed

Similar vizzes