Skip to main content
100%

Customizing Axes

✓ Published2🌍 Public
LLonwabo11
Last edited May 10, 2019
Created on May 9, 2019
Forked from Customizing Axes

This example visualizes the temperature in San Francisco over time using a bar chart, with a custom-styled y-axis and x-axis. The bars represent temperature values, and the axes are configured with D3 v5’s `scaleBand` and `scaleLinear`, alongside `axisLeft` and `axisBottom`. Tick text and lines are styled via CSS classes. The data is loaded from a CSV file using `d3.csv`, and the rendering is done with SVG rectangles.

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