Skip to main content
100%

Customizing Axes

✓ Published1🌍 Public
Uucsclk
Last edited Jun 4, 2020
Created on Jun 2, 2020
Forked from Customizing Axes

This bar chart visualizes node insertion distances from a dataset, showing both absolute and relative distances across node IDs. The chart uses dual y-axes: a left axis for node distance and a right axis for relative distance, with red circles overlaid on bars to highlight relative values. Built with D3 v5, the code demonstrates customizing axes through `scaleLinear`, `scaleBand`, `axisLeft`, `axisRight`, and `axisBottom`, with `.tickFormat` and `.tickSize` controls. Data is loaded from a CSV file via `d3.csv`, and the SVG rendering includes labeled axes and a title.

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.

See also the first bar chart visualization that this one builds on: Making a Bar Chart.

MIT Licensed

Similar vizzes