Making a Bar Chart
✓ Published0🌍 Public
This bar chart displays the area cultivated by various crops, using a horizontal layout to emphasize differences in land usage. The chart is rendered with D3 v5 and SVG, scaling the bar widths linearly and positioning categories with a band scale. It reads data from a local CSV file and customizes the axes by removing domain lines and tick lines, while applying custom tick formatting. The visualization also includes axis labels and a title, demonstrating how to refine D3's built-in axis components for a cleaner presentation.
AI-generated descriptionThis 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