Fork of Fork of Fork of Bar Chart + Axis customisation
✓ Published0🌍 Public
Ttolik518
Last edited Mar 5, 2021
Created on Mar 5, 2021
Forked from Fork of Fork of Bar Chart + Axis customisation
A horizontal bar chart displays total COVID-19 cases for ten countries, sorted from highest (USA) to lowest (Argentina). The visualization uses D3 v6 with SVG rendering, employing `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom` to construct the chart. Custom axis formatting converts large numbers using the `format` function, replacing 'G' with 'B' for billions. The bars and tick labels are styled with linear gradients defined in SVG defs, while the x-axis includes a custom label and tick marks that extend across the plot area. Data comes from a CSV file loaded via `d3.csv`.
AI-generated descriptionMIT Licensed