Skip to main content
100%

Customizing Axes

✓ Published3🌍 Public
CCurran Kelleher
Last edited Jul 5, 2019
Created on Jun 28, 2019
Forked from Customizing Axes

This example displays a horizontal bar chart ranking the top 15 countries by speed camera density, using data on speed traffic cameras. The visualization applies a linear scale for the x-axis and a band scale for the y-axis, with custom tick formatting to abbreviate large numbers. The axes are customized using `d3.axisBottom` and `d3.axisLeft`, with grid lines extending across the chart and axis labels styled via CSS. The chart is rendered as an SVG using D3.js v5, with data loaded from a CSV file.

AI-generated description

Data on speed traffic cameras from this tweet.

MIT Licensed

Similar vizzes