Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Fork of Bar Chart - ICE 6

Public visualization

Fork of Fork of Bar Chart - ICE 6

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

Comments

Sign in to join the discussion.

MIT Licensed