Skip to main content
100%

Customizing Axes

✓ Published0🌍 Public
SShengjie-Sun
Last edited May 13, 2019
Created on May 12, 2019

This example shows a horizontal bar chart ranking the top 10 most populous countries, with population values formatted using abbreviated notation. The chart customizes both axes: the y-axis removes domain lines and tick marks, while the x-axis uses a tick format and negative tick size to create gridlines. Built with D3 v5, it uses `d3.scaleLinear`, `d3.scaleBand`, `d3.axisLeft`, and `d3.axisBottom` to render SVG elements, with data loaded from a CSV file.

AI-generated description
MIT Licensed

Similar vizzes