Customizing Axes
✓ Published1🌍 Public
This example visualizes the top 10 most populous countries using a horizontal bar chart, drawing on 2018 population estimates from World Population Prospects 2017. The chart uses d3.scaleLinear and d3.scaleBand scales, with d3.axisBottom and d3.axisLeft for custom axes. The y-axis ticks are stripped of domain lines, while the x-axis uses a tick format that converts billions to "B" via d3.format. Axis labels and a title are added as SVG text elements, with data loaded from a CSV file using d3.csv.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
This bar chart shows population of the top 10 most populous countries. The data comes from the year 2018 estimate in [world population prospects 2017]
MIT Licensed