Skip to main content
100%

Fork of Fork of Bar Chart - ICE 6

✓ Published0🌍 Public
Aarchanagoli@my.unt.edu
Last edited Mar 21, 2024
Created on Mar 21, 2024

This example visualizes the top 10 countries by sales as a horizontal bar chart, using a green-to-orange linear gradient to fill each bar. The chart is built with React and rendered as SVG, using D3 v6 scales (`scaleBand` and `scaleLinear`) to map country names and sales values to pixel positions. Data is loaded from a remote CSV file, and axis ticks are generated with `xScale.ticks()`, with both axis labels and bar values styled via CSS.

AI-generated description
MIT Licensed

Similar vizzes