Skip to main content
100%

ICE-6 Bar Graph

✓ Published0🌍 Public
Ggayathrikavya
Last edited Mar 22, 2023
Created on Mar 22, 2023

This example displays a horizontal bar chart of total revenue for twelve countries, loaded from a CSV file. Built with React and D3 v5, it uses `scaleBand` for the categorical y-axis and `scaleLinear` for the numeric x-axis. SVG rectangles are rendered for each bar, with gridlines and axis tick labels generated via `xScale.ticks()` and custom text elements. The data is fetched asynchronously using `d3.csv` and processed with a row function to convert revenue values to numbers.

AI-generated description

A whole smiley face

MIT Licensed

Similar vizzes