Customizing Axes
This example visualizes node insertion distances from a CSV dataset, combining a bar chart for absolute node distance with overlaid circles for relative distance. The left axis uses a linear scale with formatted tick labels, while the right axis applies percentage formatting and grid lines. D3 v5 APIs such as `scaleLinear`, `scaleBand`, `axisLeft`, `axisRight`, and `axisBottom` customize the axes, with the data sourced from a local CSV file and rendered as SVG elements.
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.
See also the first bar chart visualization that this one builds on: Making a Bar Chart.