Customizing Axes
✓ Published0🌍 Public
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 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.
MIT Licensed