Skip to main content
100%

Customizing Axes

✓ Published0🌍 Public
Ggcappadaniel
Last edited May 30, 2020
Created on May 30, 2020
Forked from Customizing Axes

This bar chart displays the relationship between horsepower and weight for cars in the auto-mpg dataset, with each circle representing one vehicle. The visualization uses D3 v5’s `scaleLinear`, `axisLeft`, and `axisBottom` to render customizable axes with extended tick lines that span the chart interior, removed domain lines, and custom axis labels. The plot margin is set to accommodate rotated y-axis text, and the data is loaded via `csv` from a remote file before being scaled and drawn as semi-transparent red circles in an SVG.

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