Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Data Visualization - ICE-6 - Bar chart

Public visualization

Data Visualization - ICE-6 - Bar chart

0 stars0🌍 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

Comments

Sign in to join the discussion.

MIT Licensed