Skip to main content
100%

Fork of ICE-6 Tutorial Bar Chart

✓ Published0🌍 Public
Iiamhassanrazaahr
Last edited May 15, 2022
Created on May 15, 2022

This horizontal bar chart displays the top 10 cosmetic products by revenue, with dollar amounts scaled along the x-axis and product names on the y-axis. It uses d3.csv to load data from a GitHub gist, then renders SVG rectangles with d3.scaleLinear and d3.scaleBand. Custom axes are built with d3.axisLeft and d3.axisBottom, including tick formatting that abbreviates large numbers with d3.format. The chart demonstrates margin-based layout and axis customization within an SVG canvas.

AI-generated description

This bar chart shows population of the top 10 most populous countries. The data comes from the year 2018 estimate in United Nations: World Population Prospects 2017. It also demonstrates customization of D3 axes.

MIT Licensed

Similar vizzes