Skip to main content
100%

Data Visualization - ICE-6 - Bar chart

✓ Published0🌍 Public
Ssuchitra2602
Last edited Jun 26, 2022
Created on Jun 25, 2022

This horizontal bar chart displays the top 10 companies by revenue in billions of dollars, sourced from a CSV file. Each bar’s length is proportional to the revenue value, scaled using `d3.scaleLinear`, while company names are positioned with `d3.scaleBand`. The chart renders as an SVG with React, using `d3.csv` to load data and a `useEffect` hook to fetch and parse it. Axis ticks and gridlines are drawn with `d3.axisLeft` and `d3.axisBottom` logic, and red fills highlight the bars.

AI-generated description

This bar chart shows the world's biggest companies in revenue

MIT Licensed

Similar vizzes