Skip to main content
100%

Customizing Axes

✓ Published1🌍 Public
Mmla341
Last edited Jun 21, 2020
Created on Jun 21, 2020
Forked from COVID chart

This bar chart displays COVID-19 infection rates per 100,000 people for the most affected U.S. counties, with values sourced from Statista (2020). It shows how cases are distributed among ten counties, using a custom-formatted x-axis that abbreviates large numbers with a capital "K". The visualization uses d3.scaleLinear and d3.scaleBand for axes, and d3.axisLeft/d3.axisBottom for custom tick marks and labels. The code removes default axis lines, adds custom tick styling with d3.format, and annotates the chart with a title and axis label. Bars are rendered as SVG rectangles with a blue fill.

AI-generated description

*Per 100,000 habitants
This bar chart was constructed using data from Elflein (June, 2020) Rates of coronavirus (COVID-19) cases in the most affected U.S. counties. Retrieved from https://www.statista.com/statistics/1109053/coronavirus-covid19-cases-rates-us-americans-most-impacted-counties/

MIT Licensed

Similar vizzes